简体   繁体   中英

php SDK $this->facebook->api('/me'); has stopped working

I am using the most recent PHP SDK. Up until yesterday, my website was authenticated through Facebook, queried data from Facebook, and had the ability to post to Facebook.

Now after logging into Facebook, my page does not query anything. I call $me = $this->facebook->api('/me'). $me is now undefined.

I have not changed any of my previously working code.

There is currently a bug http://developers.facebook.com/bugs/412291762177195?browse=search_50b52ea44ab2c4d05746653 which causes a Facebook exception because of the SSL certificate. Since PHP throws an exception, the user is invalidated so the API call will not work.

Known bug. Resolved: http://developers.facebook.com/bugs/412291762177195?browse=search_50b5b3ac645046132144787

Download the new SDK here: https://github.com/facebook/facebook-php-sdk

同时,您可以使用此代码来避免SSL异常

Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER]=false;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM