无法获取访问令牌
为什么我会收到以下错误消息?
{"error":{"message":"Error validating login secret. Since your application has a login secret in addition to a secret key, you must use the login secret and not the secret key with OAuth.","type":"OAuthException"}}
$url='https://graph.facebook.com/oauth/access_token?client_id='.$APPID.'&redirect_uri='.$RDURL.'&client_secret='.$APPSECRET.'&code='.$_GET['code'];
Why do I get the following error message?
{"error":{"message":"Error validating login secret. Since your application has a login secret in addition to a secret key, you must use the login secret and not the secret key with OAuth.","type":"OAuthException"}}
$url='https://graph.facebook.com/oauth/access_token?client_id='.$APPID.'&redirect_uri='.$RDURL.'&client_secret='.$APPSECRET.'&code='.$_GET['code'];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为在 Facebook 应用程序的设置页面中,您已启用此选项:
尝试禁用它并查看是否有帮助。如果没有,请尝试将
$APPSECRET
替换为“登录密码”(如果有的话)。I think in the settings page of your application on Facebook, you have enabled this option:
Try disabling it and see if it helps. If it doesn't though, try replacing the
$APPSECRET
with a 'login secret' if you have any.