Facebook SDK 4 for Android - how to log out programmatically
Recently, Facebook released SDK 4 with new and cool updates. I tried to switch into SDK4 to use new features, however, I am struggling with the Login feature of Facebook. So far, to log out Facebook programmatically, I used : Session session = Session.getActiveSession(); session.closeAndClearTokenInformation(); But SDK4 seems not to support Session anymore, and in official docs, they mention: There are two ways to implement Facebook login on Android: LoginButton class - Which provides a button you can add to your UI. It follows the current access token and can log people in and out. Well,