Redirecting to authentication dialog - “An error occurred. Please try again later”

前端 未结 30 1998
执念已碎
执念已碎 2020-11-29 04:08

Why does it always happen to me?

This happens after my application verify for user user login and redirect user to the authentication page:

https://w

30条回答
  •  孤城傲影
    2020-11-29 04:34

    Another possible mistake, if you directly copied the code from Facebook SDK example then you may get the same error despite of having everything correct. http://developers.facebook.com/docs/reference/php/

    This is because in their example they have used backquotes instead of single quotes for the key of the array. The correct code is as follows.

    require_once("facebook.php");
    
    $config = array();
    $config['appId'] = 'YOUR_APP_ID';
    $config['secret'] = 'YOUR_APP_SECRET';
    $config['fileUpload'] = false; // optional
    
    $facebook = new Facebook($config);
    

提交回复
热议问题