Search code examples
access-tokenfacebook-ios-sdk

Logout from facebook.com invalidates access token in my app


I've just realized that if I log out from facebook.com, the access token in my app is no longer valid (fbSessionInvalidated gets called).

I don't understand why logging out from the Facebook website would invalidate the access token in my app. Is this normal behaviour, and if so why is it happening?


Solution

  • I just enabled "Remove offline_access permission" in my app's advanced settings and this problem is fixed (I also get 60 days access tokens now).