Facebook Logout causes logout from my application

空扰寡人 提交于 2019-12-11 12:23:16

问题


I have created simple javascript widget where login happens using Facebook Single Sign On. It logins the person whenever he is logged in to facebook (after authorization for the first time). However, it also logs out the user when Facebook logout happens. I want the person to not get logged out when the person logs out of Facebook?

Suggest me what is the way around.


回答1:


It is not possible to keep a facebook connection going once they are logged out. The way around would be to create your own user tracking.

Once a user is logged in through facebook - store their information in a session (cookie, table) and then rely only on that to check if this user is still logged in (you will need to implement your own logout too). This will work only if you use facebook as a login provider, if you need some interactions with facebook api that require login - they have to be logged in to facebook.



来源:https://stackoverflow.com/questions/2941334/facebook-logout-causes-logout-from-my-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!