Facebook SDK 2017 PHP Error

On: 25th May 2017
In: Tutorials
Views: 186
 Like

A recent update to the Facebook SDK has caused issues with some older versions which causes the following error:

PHP Fatal error: Cannot use object of type stdClass as array in FacebookRedirectLoginHelper.php on line 191

To fix this issue, go to FacebookRedirectLoginHelper.php then find $response['access_token']

You will see this code:

Replace it with this:

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *