I am using parse server as a backend in the app. I've the requirement to login with Facebook as a sign up option. For that I am using
compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'
Using this latest Facebook sdk for Android
compile('com.facebook.android:facebook-android-sdk:4.26.0') {
exclude group: 'com.parse.bolts',
module: 'bolts-android'
}
When login first time after installing the app with facebook it all works fine
private void loginWithFacebook(){
ParseFacebookUtils.logInWithReadPermissionsInBackground(this, Arrays.asList("public_profile", "email", "user_friends"), new LogInCallback() {
@Override
public void done(ParseUser user, ParseException err) {
//....
}
});
}
I can have the access token with other information which i can use later on in the app for different purpose, but the problem starts when i logout using:
LoginManager.getInstance().logOut();
this function logs me out properly but after logging again with same Facebook account using same logic for login when i debug and tries to get the Access Token it's null which I am not able to understand why as it should work just fine.
The account that I am using to login is already a test account which works fine with the iOS version of the application with the same flow but not in Android.
Let me know if I am doing anything wrong.