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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -