Android: Facebook Login: The App has no Android Key hashes configured
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
Jasper
Areas of interest and skill: Java / J2EE / MongoDB / Big Data/ Hadoop / Machine Learning / Cloud / Amazon EC2
Updated on June 26, 2022Comments
-
Jasper almost 2 years
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.
-
Jasper almost 9 yearsFouad > I do not see hash key form field on developers page itself
-
Fouad Wahabi almost 9 yearsyou have to create a Facebook App and then register your app hash key in this App : here's the link , developers.facebook.com/settings/developer/sample-app
-
Jasper almost 9 yearsThe app exists of course, but i see no way of adding hash key for my own app
-
Jasper almost 9 yearsFouad> This is an existing app. So it appears that hash key cannot be added/updated to an existing app - as there is no option for that.
-
Fouad Wahabi almost 9 yearsNope , please be sure that your existing app is created for android , then if it's once you open this link : developers.facebook.com/settings/developer/sample-app , you can edit your hash key
-
Jasper almost 9 yearsExisting App ... no way to change the key hash?
-
Raghu Mudem almost 9 yearsYou can change the existing app also. Select your app from the developer console and select "Settings" options from the left panel. You can find "Key hashes" section.
-
Raghu Mudem almost 9 yearsIf not find select "Settings" from left panel and select "Add platform" select android.
-
Fouad Wahabi almost 9 years@downvoter shame on you, you think you have enough knowledge to judge my answer as not useful ?