In my application, I allow users to automatically log in and log out of Facebook.
To log in, I call:
ArrayList<String> permissions = new ArrayList();
permissions.add("manage_pages");
permissions.add("publish_actions");
LoginManager.getInstance().logInWithPublishPermissions(App.activity, permissions);
And to exit the system, I call:
FacebookSdk.sdkInitialize(getApplicationContext());
LoginManager.getInstance().logOut();
When I call the logInWithPublishPermissions () method above, the official Facebook application opens, which asks the user to log in, and after the user logs in, they will log into the system for both my application and the official Facebook application.
However, when I call the logout () method above, the user does not exit the official Facebook application. Is there any way to do this, i.e. Exit my application will force you to exit the official application? Single sign-on type if you want?