Hi!
I don't know if it could help you guys but I found this on FB dev:
++++++++++++++++++++++++++++++++++++++++=
Hello, from this morning (Rome time), the login of my web site stopped to works. It always return this error: An active access token must be used to query information about the current user.
Nothing was changed in my code nor in my facebook app.
Hey, I don't know if this would be helpful to anyone here but I'm going to write it anyway.
I also encountered this error today and after hours of digging through legacy code, I noticed that project was using old FB PHP SDK from 2011 (legacy project).
I found it on github in case you want to compare your version with this that caused me problems:
Code: github.com/facebookarchive/facebook-php-sdk/blob/master/src/base_facebook.php
Problematic lines: #L414 and #L809 (parse_str function).
After I switched from parse_str to json_decode everything started working again.
So instead of :
$response_params = array();
parse_str($access_token_response, $response_params);
I switched to:
$response_params = json_decode($access_token_response, true);
It's working again for me.
Hope this helps!
++++++++++++++++++++++++++++++++++++++++++++++++
I added a Facebook login to my website long time ago. Everything is fine.
But from this morning, I found lots of error 500 from my server. My program stops after the line $session = $helper->getSessionFromRedirect();
Here is my code:
$helper = new FacebookRedirectLoginHelper($fb_callback_url);
try {
$session = $helper->getSessionFromRedirect(); // error 500 happens here from this morning and it cause my program stop
} catch( FacebookRequestException $ex ) {
// When Facebook returns an error
} catch( Exception $ex ) {
// When validation fails or other local issues
}
Anything wrong with getSessionFromRedirect?
Thanks
++++++++++++++++++++++++++++++++++++=
Michel