I’m trying to implement the ability to login using a Facebook / Twitter account using the HybridAuth library.
As far as I understood when you call the “authenticate” method on it’s supposed to redirect you say on the Facebook page, where you enter your FB credentials, and then come back to the page it was called from.
In my case I’ve given the ability to authenticate from 2 different pages (login / signup), and everything works fine in the “normal” situation.
However there’s a weird issue when the following steps are executed
Go to sign up page
Hit Sign Up with Facebook => you’re redirected to the FB authentication page
DO NOT authenticate, but close the window instead
Go to the login page
Hit Log In with Facebook => you’re redirected to the FB authentication page
Authenticate with your FB account
At this moment you are redirected to the SignUp page and NOT the LogIn page, as if the previous failed sign up attempt had made the callback put in the cache.
Has anybody else ever experienced this, or any idea of what is going on ?