本文介绍了无法获取访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会收到以下错误消息?

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


推荐答案

我认为您在Facebook上应用程序的设置页面中,您已启用此选项:

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

尝试禁用它,看看是否有帮助。如果没有,请尝试将 $ APPSECRET 替换为登录密码。

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.

这篇关于无法获取访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 19:45