简体   繁体   English

Facebook注销导致我的应用程序注销

[英]Facebook Logout causes logout from my application

I have created simple javascript widget where login happens using Facebook Single Sign On. 我创建了一个简单的JavaScript小部件,使用Facebook Single Sign On进行登录。 It logins the person whenever he is logged in to facebook (after authorization for the first time). 只要该人登录Facebook(首次授权后),它就会登录。 However, it also logs out the user when Facebook logout happens. 但是,当Facebook注销时,它也会注销用户。 I want the person to not get logged out when the person logs out of Facebook? 我希望该人从Facebook注销时不会注销?

Suggest me what is the way around. 请告诉我怎么回事。

It is not possible to keep a facebook connection going once they are logged out. 一旦注销,就无法保持Facebook连接正常。 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). 一旦用户通过facebook登录-将其信息存储在会话(cookie,表)中,然后仅依靠该信息检查该用户是否仍在登录(您也需要实现自己的注销)。 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. 仅当您使用facebook作为登录提供者,并且需要与需要登录的facebook api进行一些交互时,这才有效-它们必须登录到facebook。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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