Invalid or no certificate authority found, using bundled information

前端 未结 4 2167
孤街浪徒
孤街浪徒 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条回答
  •  萌比男神i
    2021-02-09 01:13

    I've checked the server config and everything seems fine. However I've seen a few other posts on the internet where users have fixed the issue by editing the following lines in

    "base_facebook.php"

    /** * Default options for curl. */

    public static $CURL_OPTS = array(
    CURLOPT_CONNECTTIMEOUT => 10,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 60,
    CURLOPT_USERAGENT => 'facebook-php-3.2',
    CURLOPT_SSL_VERIFYPEER => false, (ADDED THIS LINE)
    );
    

    I've tested it and this now works, and it successfully posts to the Facebook page.

    Cheers!

    Mudassar Ali

提交回复
热议问题