我有麻烦呼叫friendid/apprequests rest api方法,以下是im发送的帖子,使用restfb api for java:

2011年10月13日12:09:30 pm com.restfb.defaultwebrequestor executepost信息:执行帖子 https://graph.facebook.com/to_user_id/apprequests with parameters (sent in request body): message=BLABLABLABLA!&data=BLABLABLABLA&access_token=XXXXXXXXXXXXXXXXXXXXXXXX&format=json

2011年10月13日12:09:32 pm com.restfb.defaultfacebookclient makerequestandprocessrocessponse信息:Facebook使用http状态代码400和响应主体响应:{“ error”:{“ message”:{“ message”:{#2)用户无法发送此信息。请求:未知错误“,” type“:“ OauthException”}}对此有任何帮助吗?

而且我尝试了一个get请求,我得到了状态代码200,但没有生成请求:

信息:提出请求 https://graph.facebook.com/to_user_id/apprequests?message=blablablabla%21&data=blablablablablablablablababla&access_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&format=json2011年10月13日12:08:51 pm com.restfb.defaultfacebookclient makerequestandprocessrocessponse信息:Facebook响应了HTTP状态代码200和响应主体:{“ data”:[]:[]}上面有任何线索吗?

谢谢。

有帮助吗?

解决方案

尝试这个:

Facebook:发送应用程序邀请

如果您已经有一个,则可以跳过Access_Token零件。请记住,您只能将请求发送给已经授权应用程序的用户。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top