简体   繁体   English

从Facebook注销按钮捕获注销操作-facebook-android-sdk:4.0.0

[英]Catch logout action from facebook Logout button - facebook-android-sdk:4.0.0

Currently i am devloping a facebook authenticated android application.I have done the authentication application with facebook-android-sdk:4.0.0. 目前我正在开发一个经过Facebook认证的android应用程序。我已经使用facebook-android-sdk:4.0.0完成了该认证应用程序。 it works fine. 它工作正常。 After login , the same button act as logout . 登录后,相同的按钮用作注销。 But the problem is . 但是问题是。 i need to catch the logout action event from the facebook logout Button can you guys help me on this? 我需要从facebook注销按钮中捕获注销操作事件,你们可以帮我吗?

or is there any other way to implement the Logout functionality. 还是有其他方法可以实现注销功能。 please advise 请指教

You can call LoginManager.logOut() to log out the user. 您可以调用LoginManager.logOut()注销用户。 You can use the AccessTokenTracker to detect when the access token goes null, here's an example . 您可以使用AccessTokenTracker来检测访问令牌何时为空,这是一个示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM