【问题标题】:Long-time access token for standalone application独立应用程序的长时间访问令牌
【发布时间】:2013-12-04 11:18:05
【问题描述】:

我需要制作将照片发布到群组相册和墙上的独立应用程序(使用 facebook sdk for .net)。我想获得长时间的访问令牌。我分两步尝试: 1. 通过此类请求获取短访问令牌

https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=client_credentials

它会像这样返回我的令牌:

access_token=APP_ID|SHORT_ACCESS_TOKEN
  1. 使用获取长时间令牌

    https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=SHORT_ACCESS_TOKEN

在这一步我得到响应

{
   "error": {
      "message": "An unexpected error has occurred. Please retry your request later.",
      "type": "OAuthException",
      "code": 2
   }
}

我该如何解决?

【问题讨论】:

    标签: access-token facebook-access-token


    【解决方案1】:

    通过直接从 Graph API Explorer 获取 SHORT_ACCESS_TOKEN 来解决问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-09
      • 1970-01-01
      • 2020-09-18
      • 2012-06-21
      • 2012-04-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多