[英]How to logout user from the Facebook when he does not authorize the application
I have ASP.NET web application that 我有ASP.NET Web应用程序
Registration process contains the following steps: 注册过程包含以下步骤:
The application works perfect until user clicks Cancel at step 4. When this happens, the browser is redirected to my application, the user remains signed into the Facebook but the application is not authorized by this user. 该应用程序可以正常运行,直到用户在步骤4中单击“取消”为止。发生这种情况时,浏览器将重定向到我的应用程序,该用户仍登录到Facebook,但该应用程序未获得该用户的授权。 This means that the application cannot logout this user from the Facebook by using the FB.logout method because the application does not have access token.
这意味着应用程序无法使用FB.logout方法从Facebook中注销该用户,因为该应用程序没有访问令牌。
How to logout from the Facebook in this case? 在这种情况下如何从Facebook注销?
Thank you. 谢谢。
How to logout from the Facebook in this case?
在这种情况下如何从Facebook注销?
Not possible at all. 根本不可能。
If logging a user out without a valid access token was possible, then every website I'm visiting could do that if they liked – I'm sure you can see how annoying that'd be to users, and that it's therefor not possible. 如果可以在没有有效访问令牌的情况下注销用户,那么我正在访问的每个网站都可以这样做,如果他们愿意的话–我敢肯定,您会看到这会对用户造成多大的烦恼,并且这是不可能的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.