问题描述
大家好,
我遇到了这种情况,现在我仍在努力解决问题.
这是场景:
1.用户访问我的网站
2.用户单击登录到FB"(以便我的应用程序通过Api图检索其FB信息).
3.用户使用其FB凭据登录并批准该应用程序.
4.用户被重定向回到他单击登录到FB"按钮的同一页面(在步骤2中,因为该按钮将调用RedirectToFacebookAuthorization()方法).
5.然后,用户从Facebook.com注销(在这种情况下,我的网站尚未实现任何注销按钮).
6.用户已成功从其FB帐户注销,他重新访问了我的网站.
7.我的网站抛出如下异常消息:
异常详细信息:Facebook.Utility.FacebookException:该会话无效,因为用户已注销.
Hi guys,
I have a situation here and I''m still cracking my head on how to solve it.
Here''s the scenario:
1. User visits my website
2. User clicks on Login to FB (in order for my App to retrieve his FB info via the Api graph).
3. User logins with his FB credential and Approve the App.
4. User is redirected back to the same page that he clicks on the Login to FB button (in step 2, because the button, will invoke the method RedirectToFacebookAuthorization() ).
5. User then logs out from Facebook.com (my website hasn''t implement any log out button for this scenario).
6. User has successfully logged out from his FB account, he revisit my website.
7. My website throws out an exception message as below:
Exception Details: Facebook.Utility.FacebookException: The session is invalid because the user logged out.
推荐答案
这篇关于会话无效,因为用户已注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!