Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 908
Muhamad Bhaa Asfour Avatar asked Jan 25 '26 05:01

Muhamad Bhaa Asfour


1 Answers

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

like image 112
Muhamad Bhaa Asfour Avatar answered Jan 26 '26 19:01

Muhamad Bhaa Asfour



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!