[英]Facebook login by sdk but post issue
This is what my logcat shows as a response 这是我的logcat显示为响应
{
Response: responseCode: 403,
graphObject: null,
error: {
HttpStatus: 403,
errorCode: 200,
errorType: OAuthException,
errorMessage: (#200) The user hasn't authorized the application to perform this action
},
isFromCache:false
}
I'm unable to post to facebook due to this error. 由于此错误,我无法发布到Facebook。 What are the steps to authorize the application? 授权应用程序有哪些步骤?
I guess you need to issue an HTTP POST to that endpoint to publish a new feed story, facebook provides the "method=post" GET parameter to "fake" a post, this might work for you. 我猜您需要向该端点发出HTTP POST才能发布新的提要故事,facebook提供了“ method = post” GET参数来“伪造”帖子,这可能对您有用。
https://graph.facebook.com/USER_ID/feed?access_token=TOKEN&message=HelloFacebook&method=post
wrt to response you will get an id as : wrt响应您将获得一个id为:
{
"id": "499801468_1001264776039"
}
for more details please refer 有关更多详细信息,请参阅
for GraphAPI - http://developers.facebook.com/docs/reference/api/#publishing 用于GraphAPI- http://developers.facebook.com/docs/reference/api/#publishing
Also please check your permission tag 另外请检查您的许可标签
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.