【发布时间】: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