A much simpler solution worked for my case (I don’t know if this is the more elegant way though):
public boolean isLoggedIn() {
AccessToken accessToken = AccessToken.getCurrentAccessToken();
return accessToken != null;
}
More Related Contents:
- Embed activity feed of a public Facebook page without forcing user to login/allow
- Is uploading videos from an SD Card to Facebook possible with the Facebook SDK?
- Google Cloud Endpoints and user’s authentication
- Facebook – “Cannot query users by their username” solution
- Current Month Facebook Friends Birthdays in Android
- Login Error: There is an error in logging you into this application. Please try again later
- How to programmatically log out from Facebook SDK 3.0 without using Facebook login/logout button?
- Display FB profile pic in circular image view in Application
- Android Facebook authorization – can not log in when official Facebook app is installed
- How do popular apps authenticate user requests from their mobile app to their server?
- Android Facebook chat example project
- What APIs are used to draw over other apps (like Facebook’s Chat Heads)?
- Open Facebook page from Android app?
- Android: Storing username and password?
- Get ALL User Friends Using Facebook Graph API – Android [duplicate]
- Unable to add window — token android.os.BinderProxy is not valid; is your activity running?
- Login failed invalid key error with Facebook SDK
- Firebase Auth using phone number and password
- upload video to facebook in android
- ASP.NET Web API Authentication
- Android – Share on Facebook, Twitter, Mail, ecc
- Share image and text through Whatsapp or Facebook
- Using Google account to log in to an Android Application
- App not setup: This app is still in development mode
- Get public page statuses using Facebook Graph API without Access Token
- Post on Facebook wall using Facebook Android SDK without opening dialog box
- Redirect users to iTunes app store or google play store?
- How to check device compatibility for finger print authentication in android
- Facebook API login fails with FB app installed on phone
- Post message to facebook wall from android fb sdk always error