Hybridauth Authentication failed! Facebook returned an invalid user id

痴心易碎 提交于 2019-12-10 10:04:49

问题


I'm using Hybridauth library to create a signup with facebook link in my website i created and tested the code in localhost and everything worked perfectly but when moved everything to the server it didn't work and gave me this error Authentication failed! Facebook returned an invalid user id i searched a lot on the internet for a solution but none of them worked

I tried all solutions suggested in this links:

  • Hybridauth - PHP - Facebook returned an invalid user id
  • HybridAuth Facebook returned an invalid user id
  • laravel4 hybridauth facebook Authentication failed! Facebook returned an invalid user id

So can you help me fix this problem please?

Any additional information needed just ask for them in the comments and thanks in advance


回答1:


After testing my server with this file

https://github.com/mistergiri/hybridauth/commit/0989180a863c89d9491cdf1543f56d6f8a34057a

i found that my server doesn't support ssl so i recompiled apache with OpenSSl installed form cpanel and everything worked perfectly




回答2:


Check your HybridAuth config.php file for the base URL. I faced a similar issue. It should point to the correct path where the config.php resides.



来源:https://stackoverflow.com/questions/22824652/hybridauth-authentication-failed-facebook-returned-an-invalid-user-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!