Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Facebook login status in android application.?

As i checked in previous answers they suggest to use Session to check the Facebook logon status, but that class got removed in new versions, any one can you help me out to resolve this.

How can i find my current login status - facebook API android

like image 264
chethankumar Avatar asked Dec 18 '22 19:12

chethankumar


1 Answers

you can check the AccessToken :

 AccessToken token;
 token = AccessToken.getCurrentAccessToken();

  if (token == null) {
   //Means user is not logged in
}
like image 55
rushank shah Avatar answered Dec 21 '22 09:12

rushank shah