I am using parse for backend. I was trying to integrate my app with Facebook. I am following the tutorial given on parse.com. However, when I try to set up login using Facebook, I start having problems. In the tutorial, this small piece of code is given:
ParseFacebookUtils.logInWithReadPermissionsInBackground(this, permissions, new LogInCallback() {
@Override
public void done(ParseUser user, ParseException err) {
if (user == null) {
Log.d("MyApp", "Uh oh. The user cancelled the Facebook login.");
} else if (user.isNew()) {
Log.d("MyApp", "User signed up and logged in through Facebook!");
} else {
Log.d("MyApp", "User logged in through Facebook!");
}
}
});
However,when I copied this code in my application, I get an error which says " cannot resolve symbol 'logInWithReadPermissionsInBackground'". When I opened ParseFacebookUtils class in Android studio, it does not have any method called "logInWithReadPermissionsInBackground", but on the website ParseFacebookUtils class does have it. Why am I not getting this method ? I am using ParseFacebookUtilsV4-1.9.1.jar, which is the latest one. Please help me.
Aucun commentaire:
Enregistrer un commentaire