I implemented my Facebook login to my website, but how do I know if the user used my login button OR the user logged in by going to Facebook.com?
I want to detect and take some action if he or she did not use my Facebook login button. I'm using Javascript.
Just add a parameter to the links you're using for login buttons. For example
http://www.example.com/index.php?login=facebook
http://www.example.com/index.php?login=custom
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.