Facebook Graph API提供了一个未知的OAuthException [英] Facebook Graph API giving an unknown OAuthException

查看:111
本文介绍了Facebook Graph API提供了一个未知的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆