Home Ask Login Register

Developers Planet

Your answer is one click away!

CKG February 2016

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


rajan ks February 2016

you can get it from session

  public boolean isLoggedIn() {
        Session session = Session.getActiveSession();
        return (session != null && session.isOpened());

source : Facebook Login status

rushank shah February 2016

you can check the AccessToken :

 AccessToken token;
 token = AccessToken.getCurrentAccessToken();

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

Post Status

Asked in February 2016
Viewed 2,888 times
Voted 6
Answered 2 times


Leave an answer

Quote of the day: live life