android - How to Logout facebook button completely include (change text 'log out' to 'log in with facebook' ) from another activity -


i trying logout fb button activity problem when logout activity.facebook button show logout text , not logout means again click on logout logout fb button.

try

if (accesstoken.getcurrentaccesstoken() == null) {             return; // logged out         }else {             new graphrequest(accesstoken.getcurrentaccesstoken(), "/me/permissions/", null, httpmethod.delete, new graphrequest                     .callback() {                 @override                 public void oncompleted(graphresponse graphresponse) {                      loginmanager.getinstance().logout();                  }             }).executeasync();         } 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -