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

后端 未结 10 1624
执念已碎
执念已碎 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:44

    Had this error in the past. Solved by modyfying Hybridauth's code myself.

    1. In thirdparty/Facebook/base_facebook.php make sure $CURL_OPTS array uses: CURLOPT_SSL_VERIFYPEER => false
    2. In my case I was closing session files for performance improvements so I added: session_start() inside Storage.php wherever HA::STORE session var is being updated/unset.

    Let me know if it helps.

提交回复
热议问题