Facebook Graph API 给出未知的 OAuthException [英] Facebook Graph API giving an unknown OAuthException
问题描述
当我向 https://graph.facebook.com/me/home 发送请求时?access_token=(访问代码在这里) Facebook 给了我这个错误信息:
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."
}
}
其他所有 API 调用都有效.如果有人对此问题有任何了解,请帮助我.
Every other API call works. If anybody knows anything about this issue, please help me.
推荐答案
Facebook 没有很好的错误信息...
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.
您必须在范围中包含read_stream",否则 Facebook 将拒绝您的请求并显示不明确的错误消息.
You have to include "read_stream" in your scope, or else facebook will reject your request with an ambiguous error message.
我 <3 你的 Facebook API
I <3 you facebook API
这篇关于Facebook Graph API 给出未知的 OAuthException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!