not able to get the access token

感情迁移 提交于 2019-12-13 08:19:15

问题


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'];

回答1:


I think in the settings page of your application on Facebook, you have enabled this option:

'Forces use of login secret for OAuth call and for auth.login'

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.



来源:https://stackoverflow.com/questions/8203096/not-able-to-get-the-access-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!