Facebook-connect gives a redirect loop

后端 未结 2 2060
陌清茗
陌清茗 2021-01-03 03:34

Please, I need help. I\'m dealing with this issue for 1 month!!

I would like to implement facebook connect login to my website, using PHP and php-sdk 3.1.1. In few w

2条回答
  •  借酒劲吻你
    2021-01-03 04:15

    I had this problem, in my case I had to edit base_facebook.php from the SDK:

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

    The last two options I added manually.

提交回复
热议问题