简体   繁体   中英

how do I detect if user logged in using my login button or login from facebook?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM