开发者

Facebook API get_loggedin_user() suddenly returns null

开发者 https://www.devze.com 2023-04-02 02:29 出处:网络
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 e

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

0

精彩评论

暂无评论...
验证码 换一张
取 消