Domanda

I am calling

s.closeAndClearTokenInformation();
s.close();
Session.setActiveSession(null);

Which are the only methods I see that appear to reset a user's login, however, upon my next cycle through my app and call to Session.getActiveSession() I do not get a login dialog and the pre-existing token is utilized.

I'm not seeing anything in the documentation about logging a user out (I only see options for how to present them with a log-out button, which doesn't work for our use case).

Would really appreciate some advice on this.

È stato utile?

Soluzione

When you call closeAndClearTokenInformation, it will clear your app's local cache of the token information that's associated with the user.

When you create another session AND you open it AND you use SSO AND the Facebook app exists on the device AND the user is not logged out from the Facebook app, then the app will silently authorize your app again without requiring further user interaction. This is by design (since when they authorize your app, the authorization is active unless they explicitly revoke access).

What is your use case where you want to see user interaction for subsequent session open calls?

Altri suggerimenti

You log out, but you didn't revoke the access, so when opening again, it logs on and see that it is authorized to it.

I don't know how it's done in the new API, but check this out Facebook API SDK revoke access

Hope it helps.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top