开发者

Difference between FB JS Events: auth.login/auth.logout and auth.sessionChange

开发者 https://www.devze.com 2023-03-24 17:17 出处:网络
I\'m working with the Facebook Javascript SDK and I\'m tweaking the user-login system for my website. I\'m wondering what the difference between auth.login/auth.logout and auth.sessionChange. As far a

I'm working with the Facebook Javascript SDK and I'm tweaking the user-login system for my website. I'm wondering what the difference between auth.login/auth.logout and auth.sessionChange. As far as I can tell, auth.sessionChange can enable a developer to accomplish everythi开发者_C百科ng auth.login/auth.logout can and more.


You are correct, auth.sessionChange can do what auth.login/auth.logout does,but can also detect when a users session has changed in other cases, such as a password reset.

0

精彩评论

暂无评论...
验证码 换一张
取 消