简体   繁体   中英

Hybridauth Authentication failed! Facebook returned an invalid user id

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 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:

So can you help me fix this problem please?

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM