I am implementing the Facebook iOS SDK in my application as stated in the Facebook docs. Namely, the access tokens and the corresponding expiration are stored in such a way that at any time when my Facebook account is running, it can check isSessionValid , and if YES, this avoids an outside authorize call. This works great unless the user has since canceled or uninstalled the Facebook app.
Since isSessionValid only checks to see if there is a saved access token and its expiration date, it doesn't seem like there is a way to catch the case when the application was canceled, and thus authorize again.
Does anyone have a good solution for this?
Since my application supports its own session and should support an unlimited number of users, the whole procedure should happen only once, so the overhead just forgetting about saving tokens / expiration and running authorize may not be so bad every time. Let me know what you think.
source share