Facebook PHP API错误#100:需要参数'输入令牌'

时间:2016-03-31 23:30:42

标签: php facebook api facebook-login

我有一个Facebook应用程序,使用登录Facebook功能,该功能较早,现在还没有。

我使用以下代码获取登录URL:

$fb_helper = $login_providers['fb']->getRedirectLoginHelper();
$fb_login_url = $fb_helper->getLoginUrl(/* my callback URL */, array('email'));

在回调网址上,我然后使用$ fb_helper-> getAccessToken返回以下异常。

Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookAuthenticationException' with message '(#100) The parameter input_token is required' in /home/kgur5734/public_html/left/system/libraries/Facebook/Exceptions/FacebookResponseException.php:100 
Stack trace: 
#0 /home/kgur5734/public_html/left/system/libraries/Facebook/FacebookResponse.php(210): Facebook\Exceptions\FacebookResponseException::create(Object(Facebook\FacebookResponse)) 
#1 /home/kgur5734/public_html/left/system/libraries/Facebook/FacebookResponse.php(255): Facebook\FacebookResponse->makeException() 
#2 /home/kgur5734/public_html/left/system/libraries/Facebook/FacebookResponse.php(82): Facebook\FacebookResponse->decodeBody() 
#3 /home/kgur5734/public_html/left/system/libraries/Facebook/FacebookClient.php(225): Facebook\FacebookResponse->__construct(Object(Facebook\FacebookRequest), '{"error":{"mess...', 400, Array) 
#4 /home/kgur5734/public_html/left/system/libraries/Facebook/Authentication/OAuth2Client.php(118): Facebook\FacebookClient->sendRequest(Object(F in /home/kgur5734/public_html/left/system/libraries/Facebook/Exceptions/FacebookResponseException.php on line 100

任何想法,Stack Overflow?

0 个答案:

没有答案