【问题标题】:Unable to get access token from Facebook with Server-Side Authentication无法通过服务器端身份验证从 Facebook 获取访问令牌
【发布时间】:2012-08-22 14:38:31
【问题描述】:

我尝试获取类似此文档的 access_token:https://developers.facebook.com/docs/authentication/server-side/

但它不起作用!

我有这个错误:

{
   "error": {
      "type": "OAuthException",
      "message": "Error validating verification code."
   }
}

在文档中说我们可以使用:

https://graph.facebook.com/oauth/access_token?
     client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&
     client_secret=YOUR_APP_SECRET&code=THE_CODE_FROM_ABOVE

client_id 是我的 app_id
client_secret 是应用程序的秘密
redirect_uri 是网站的 url(应用配置中的站点 URL)(我尝试使用 / 并且没有在末尾)

所以我的网址是:

https://graph.facebook.com/oauth/access_token?client_id=14588084****&redirect_uri=http%3A%2F%2Fwww.mywebsite.com&client_secret=693ce9538e1f14e0*********&code=AQCVmlM9peMiL8Pv3mdi7c3FifwGLQDECdtN0oGMW4I6cisebeawDdSHP_crQlhsZxHKDOFT6zOrqeaoiL2pkQSkqAvwoPZdw0o1uCoLpUVjchghgfhgfhEXb2XS3UBD7iEc8eZ_YLF0cbVWL5i58sj3Rsr9vVFtfYwfghghgfhgfTkwajGcRp9n-lWWcepxghgIwzMMYLv8e__iDoMDiSNg

【问题讨论】:

    标签: facebook token facebook-access-token


    【解决方案1】:

    自从我上次编写 Facebook 应用程序以来已经有好几年了。不确定这是否有帮助:Facebook access token and AJAX calls

    【讨论】:

      猜你喜欢
      • 2012-06-05
      • 1970-01-01
      • 2012-05-13
      • 2016-05-23
      • 1970-01-01
      • 1970-01-01
      • 2015-11-02
      • 2018-09-07
      • 1970-01-01
      相关资源
      最近更新 更多