roughike/flutter_facebook_login

Document possible logout issues depending on the login behavior in iOS

roughike opened this issue · 0 comments

SO discussion here: https://stackoverflow.com/questions/30092610/facebook-logout-is-not-working-in-new-sdk-v-4-1-0-in-ios

This can be resolved by always using the webViewOnly behavior.

The behavior explained visually:

ios_logout_bug

In a nutshell:

  • user logs in normally
  • user logs out
  • user logs in again, but can't choose any other Facebook account than the one used for the first time.

This happens with the webOnly login behavior. It's also present with the nativeWithFallback behavior if the user doesn't have a native Facebook app installed.

The access token and the session is cleared properly as far as the login SDK is concerned, but the WKViewController managed by Safari remembers the session indefinitely.

As said before, this can be resolved by always using the webViewOnly behavior. The other solution is opening Safari and logging out from Facebook in the mobile site at https://m.facebook.com/.