0

Just trying to implement facebook integration with my android app but it shows me Misconfig for facebook login, I am sure of my hashkeys I generated it from this post and my facebook app config is like this

and it still gives me that error :S

Edit: my code

    Request.executeMeRequestAsync(session,
                            new Request.GraphUserCallback() {

                                // callback after Graph API response with
                                // user object
                                @Override
                                public void onCompleted(GraphUser user,
                                        Response response) {
                                    if (user != null) {


                                        userPassword = user.getId();
                                        String email = user.getLink();
                                        email = email.replace(".", "");
                                        email = email
                                                .replace("http://", "");
                                        email = email.replace("https://",
                                                "");
                                        email = email.replace("/", "");
                                        email = email + "@anydomains.com";

                                        userMail = email;
                                        new Login(true).execute();

                                        // register with fb


                                    }
                                }
                            });
Community
  • 1
  • 1

1 Answers1

0

I think, that you could try this:

Try to debug your app, in onSessionstateChange see for Exception not null. If your signature does not match, you will receive right signature of your app in Exception (also you could see it in logcat), than past it to FaceBook dev console.

UPDATE:

Following code works for me:

@Override
protected void onSessionStateChange(SessionState state, Exception exception) 
{
    if (exception != null)
    {   
        Log.i(TAG, exception.toString());
    }
    if (state.isOpened()) 
    {
        Request request = Request.newMeRequest( this.getSession(),
                                    new Request.GraphUserCallback() 
        {
            @Override
            public void onCompleted(GraphUser user, Response response) 
            {

            }
        });
        Request.executeBatchAsync(request);
    }
}

If your keyhash does not match, you will see it here in LogCat

if (exception != null)
{   
    Log.i(TAG, exception.toString());
}
Zakharov Roman
  • 739
  • 3
  • 13
  • 31