parse-community / ParseFacebookUtils-Android

A utility library to authenticate ParseUsers with the Facebook SDK
http://docs.parseplatform.org/android/guide/#facebook-users
Other
53 stars 63 forks source link

Facebook login error with enablelocaldatastore #17

Open rochadaniel opened 8 years ago

rochadaniel commented 8 years ago

Facebook user login doesn't work as expected when I use Parse.enableLocalDatastore, but without Parse.enableLocalDatastore it works perfectly. I'm currently using com.parse:parse-android:1.11.0 and com.parse:parsefacebookutils-v4-android:1.10.3@aar. Below is the code i'm trying to execute in production.

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Parse.enableLocalDatastore(this);
        if ( BuildConfig.DEBUG ) {
            Parse.initialize(this, "xx", "xx");
        } else {
            Parse.initialize(this, "xx", "xx");
        }
        ParseConfig.getInBackground();
        ParseUser.enableAutomaticUser();
        ParseInstallation.getCurrentInstallation().saveInBackground();
        ParseFacebookUtils.initialize(this);
    }
}