laravel4 hybridauth facebook Authentication failed! Facebook returned an invalid user id

后端 未结 10 1639
执念已碎
执念已碎 2020-12-18 07:51

OK, I\'m trying to use Hybridauth with laravel 4. However I seem to be getting the very common when trying to log in with facebook:

Authentication fai

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-18 08:46

    In base_facebook.php do following

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

提交回复
热议问题