I am trying to get Facebook Login to work in my Android App:
Here's the partial code for this:
private void performFacebookLogin()
{
final Session.NewPermissionsRequest newPermissionsRequest = new Session.NewPermissionsRequest(this, Arrays.asList("email"));
Session openActiveSession = Session.openActiveSession(this, true, new Session.StatusCallback()
{
...
}
}
But when this code is invoked, the Facebook Login page shows up with this error message:
The App has no Android Key hashes configured. Configure your app key hashes at: http://developers.facebook.com/apps/AppID
On the developers page, i see no way of providing any hash key either, and am not sure how to generate the hash key itself.
You need to generate Key hashes for your android application. Follow the instructions given in Facebook integration quick start guide. And follow the instructions given in the attached screens 1,2,3,4,5. Once you added Key hashes you are done. And check the facebook integration code. It will work without any trouble.
Link for Facebook integration quick start guide facebook quick start
Instruction image for reference
Hope this helps you