I am trying to access Facebook to work in my Android application:
Here's the incomplete 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 called, an error message appears on the Facebook login page:
Android key hashes are not configured in the application. Configure application key hashes at: http://developers.facebook.com/apps/AppID
On the developers page, I also don’t see a way to provide any hash key, and I'm not sure how to generate the hash key itself.
source
share