I use hybridauth to register users on my php site via facebook.
$hybridauth = new Hybrid_Auth( $config ); $facebook = $hybridauth->authenticate( "Facebook" ); $facebook_user_profile = $facebook->getUserProfile();
( $config contains the identifier and secret key for my application)
This all works well, but I would like to redirect the user when he returns to the callback url based on which page they are logged in, so I can return them to this location after logging in.
Is there a way to send custom variables using authentication (like a URL or even a simple identifier) โโso that I can read them at the other end of the process and find out where the authentication request was triggered.
Is this possible, or am I barking the wrong tree?
If you know how to do this using a hybrid, then any suggestions that put me on the right track are more welcome.
source share