FB Graph API OAuthException错误代码2500

时间:2012-12-13 06:06:02

标签: c# asp.net facebook-graph-api

我使用图形API获取用户的好友列表,直到昨天它工作正常。现在我在尝试获取朋友列表时收到以下错误:

{
   "error": {
      "message": "An active access token must be used to query information about the current user.",
      "type": "OAuthException",
      "code": 2500
   }
}

accessToken未过期。 api有什么变化,或者我做错了什么,导致这个错误?

1 个答案:

答案 0 :(得分:0)

好的,Graph API允许您轻松访问有关对象的所有public信息,但要获得除此之外的其他信息,您必须首先获得用户的许可。为此,您需要获取{{1}首先。

https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/

相关问题