Android – How to check Facebook login status in android application.

androidandroid-facebookfacebookfacebook-android-sdkfacebook-graph-api

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

Best Answer

you can check the AccessToken :

 AccessToken token;
 token = AccessToken.getCurrentAccessToken();

  if (token == null) {
   //Means user is not logged in
}