Facebook Graph API提供了一个未知的OAuthException [英] Facebook Graph API giving an unknown OAuthException
问题描述
当我向 https://graph.facebook.com/me/home发送请求时?access_token = (访问代码到这里) Facebook给我这个错误消息:
{
error:{
type:OAuthException,
message:发生未知错误。
}
}
每个其他API调用都有效。如果有人知道这个问题,请帮助我。
Facebook没有很好的错误信息...
Apparantly,发生未知错误表示我没有有效权限访问用户的新闻Feed。
你必须在你的范围内加入read_stream,否则Facebook会以模糊的错误信息拒绝你的请求。
我< 3你的Facebook API
When I send a request to https://graph.facebook.com/me/home?access_token=(access code goes here) Facebook gives me this error message:
{
"error": {
"type": "OAuthException",
"message": "An unknown error has occurred."
}
}
Every other API call works. If anybody knows anything about this issue, please help me.
Facebook does not have very good error messages...
Apparantly, "An unknown error has occurred" means that I did not have valid permissions to access the user's news feed.
You have to include "read_stream" in your scope, or else facebook will reject your request with an ambiguous error message.
I <3 you facebook API
这篇关于Facebook Graph API提供了一个未知的OAuthException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!