0
votes

I have an app which uses the Facebook SDK 3.0 and I'd like to make it possible, that a user can logout from facebook in my app.

Is there any possibility, to logout or force a login dialog?

I tried to use the authorize() method from the older facebook sdk but I'm not able to merge it with the session things from the new sdk, so I have to do it all with session from sdk 3.0 or with the Facebook class from the older sdk.

2

2 Answers

1
votes

It is not possible to force a logout of the native Facebook app via your app.

0
votes

I do that into my app, on the onCreate() method, you should do something like that

if (Session.getActiveSession() != null) {
Session.getActiveSession().closeAndClearTokenInformation();
 }
Session.setActiveSession(null);

You can also save Token Information anywhere, and then call closeAndClearTokenInformation() again.

Hope this help.