3

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:

So can you help me fix this problem please?

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

Community
  • 1
  • 1
Muhamad Bhaa Asfour
  • 1,075
  • 3
  • 22
  • 39

2 Answers2

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

Muhamad Bhaa Asfour
  • 1,075
  • 3
  • 22
  • 39
0

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.

Moghira
  • 317
  • 5
  • 10
  • What base url in config.php ? – The Onin Oct 11 '15 at 01:03
  • Check this out [link](http://hybridauth.sourceforge.net/userguide/Configuration.html) It simply points to the starting point of the hybrid endpoint i.e the index.php – Moghira Oct 11 '15 at 10:49
  • @Moghira the link shared seems to be broken now. Can you share here how to change the base_url – Tumaini Mosha Apr 13 '18 at 21:00
  • Seems like the library has been upgraded now. You can check the documentation here https://hybridauth.github.io/developer-ref-user-authentication.html – Moghira Apr 17 '18 at 07:19