Facebook登录通过SDK,但发行后 [英] Facebook login by sdk but post issue
问题描述
这是我的logcat显示为响应
{
回应:响应code:403,
graphObject:空,
错误:{
的HTTPStatus:403,
错误code:200,
ERRORTYPE:OAuthException,
的errorMessage:(#200)的用户无权执行此操作的应用程序
},
isFromCache:假的
}
我无法发布到Facebook因这个错误。什么是授权应用程序的步骤?
我猜你需要提交一个HTTP POST到端点发布新进的故事,Facebook提供了method = post的GET参数设置为假一个职位,这可能会为你工作。
<$p$p><$c$c>https://graph.facebook.com/USER_ID/feed?access_token=TOKEN&message=HelloFacebook&method=postw.r.t来回应你会得到一个id为:
{
ID:499801468_1001264776039
}
有关详细信息,请参阅
有关GraphAPI - http://developers.facebook.com/docs/reference/ API /#发布
另外,请检查您的许可标签
This is what my logcat shows as a response
{
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. 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.
https://graph.facebook.com/USER_ID/feed?access_token=TOKEN&message=HelloFacebook&method=post
w.r.t to response you will get an id as :
{
"id": "499801468_1001264776039"
}
for more details please refer
for GraphAPI - http://developers.facebook.com/docs/reference/api/#publishing
Also please check your permission tag
这篇关于Facebook登录通过SDK,但发行后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!