1

I am trying to add Facebook Login to my Android app (using Parse) with the code below.

List<String> permissions = Arrays.asList("public_profile", "email");
            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!");
                    }
                }
            });

When the code above is executed, the following screen appears:

enter image description here

These are the things I have tried (already went through many threads on SO):

  1. Already entered the debug and release hashkey in the Facebook Apps Page by getting it running the keytool utility: enter image description here
  2. I used the right openssl version from here as per this thread and this.

What am I missing here?

Community
  • 1
  • 1
user1406716
  • 9,565
  • 22
  • 96
  • 151
  • Check this answer -> http://stackoverflow.com/a/32174717/4018207..And also copy hash key you are getting on facebook page and update it to your application stored on facebook developer..!! – AndiGeeky Sep 24 '15 at 04:12
  • @AndiGeeky Yep, that was it. DIdn't think all three needed to be done, though it's mentioned i read it now. Amazing how bad facebook's documentation is here. – user1406716 Sep 24 '15 at 04:23
  • That answer is about how many key hashes should be added to facebook.. I am adding solution to your question here..!! – AndiGeeky Sep 24 '15 at 04:28
  • You duplicated this anyway..!! – AndiGeeky Sep 24 '15 at 04:31
  • Sorry, thought that was appropriate. Thank you though - can I un-duplicate this? – user1406716 Sep 24 '15 at 04:32

0 Answers0