Android - Clear Facebook access token

后端 未结 6 742
隐瞒了意图╮
隐瞒了意图╮ 2021-01-16 07:32

I have a SettingsActivity where there are several options including finding Facebook friends and logging out. So when a user chooses to find her Facebook friend

6条回答
  •  借酒劲吻你
    2021-01-16 08:21

    Using Facebook SDK v4 you can do the following:

    if (AccessToken.getCurrentAccessToken() != null) {
        LoginManager.getInstance().logOut();
    }
    

    You can take a look at the LoginManager class.

提交回复
热议问题