如何解决facebook访问toke过期问题?

时间:2017-03-27 11:34:48

标签: android facebook facebook-graph-api

如何解决facebook访问toke过期问题?

https://graph.facebook.com/v2.5/user-id/friends?fields=id,picture.type(large),name&access_token=

{
   "error": {
      "message": "Error validating access token: Session has expired on Monday, 20-Feb-17 10:55:58 PST. The current time is Monday, 27-Mar-17 04:04:19 PDT.",
      "type": "OAuthException",
      "code": 190,
      "error_subcode": 463,
      "fbtrace_id": "Gn6VQOcN18D"
   }
}

1 个答案:

答案 0 :(得分:0)

当您的会话过期时,表示您需要重新登录并接收新会话

或者,您可以在旧会话过期之前请求新会话,而不是重新登录