Facebook API get_loggedin_user() suddenly returns null
I am using faecbook's PHP SDK and the get_loggedin_user()
api worked good in past several weeks, but just about 10 minutes ago - it consistently returns null - does anybody know whether facebook is experience an outage or there is any change with this API?
My site i开发者_C百科s heavily rely on the facebook API - so any hints is highly appreciate!
It means that user is logged out. You're using outdated version of PHP SDK, use new one instead
https://github.com/facebook/php-sdk/
you can use
$user = $facebook->getUser();
there
精彩评论