尝试从Facebook检索access_token时出现问题

时间:2012-02-10 22:55:18

标签: access-token facebook-oauth facebook-access-token

我创建了一个新的应用程序,在尝试从facebook检索access_token时出现问题。

我能够检索auth代码并为auth_token生成以下请求: https://graph.facebook.com/oauth/access_token?client_id=APP_ID&redirect_uri=http://apps.facebook.com/ctfbesmokefree/&client_secret=APP_SECRET&code=GENERATED_CODE

我已按照此页面上的步骤操作: http://forum.developers.facebook.net/viewtopic.php?id=70773

但是,即使在完成所有步骤并编辑应用程序设置后,我仍然会在尝试生成auth_token时收到以下错误消息:

{
   "error": {
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
      "type": "OAuthException"
   }
}

是否还有其他设置需要更改或是否有任何遗漏?

相关问题