I find myself in a dilemma and I am still struggling to come up with a solution.
Here is the situation:
A visitor goes to my website
The visitor clicks on Login with Facebook (so that my App can access their Facebook information through the API graph).
The visitor logs in using their Facebook credentials and grants permission to the App.
The visitor is then redirected back to the same page where they clicked on the Login with Facebook button (in step 2, because the button triggers the method
).RedirectToFacebookAuthorization()
The visitor later logs out from Facebook.com (my website does not have a logout button for this specific scenario).
After successfully logging out from their Facebook account, the visitor returns to my website.
My website displays an exception message as follows:
Exception Details: Facebook.Utility.FacebookException: The session is invalid because the user logged out.