Invalid or no certificate authority found, using bundled information

前端 未结 4 2114
孤街浪徒
孤街浪徒 2021-02-09 00:36

I\'m getting started with the facebook API. I downloaded the example code from facebook, configured with my appID and secret keys.



        
4条回答
  •  庸人自扰
    2021-02-09 01:14

    Disable the SSL security feature

    Though I don't recognize that exact error message, SSL problems when communicating with Facebook via the PHP SDK (and thus Curl) are common. Have you tried doing something like this?

    Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false;
    

    This will disable the SSL "Verify Peer" security feature so that it stops generating the error message.

提交回复
热议问题