Android: Facebook Login: The App has no Android Key hashes configured

16,062

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

Image 1 Image 2

Hope this helps you

Share:
16,062
Jasper
Author by

Jasper

Areas of interest and skill: Java / J2EE / MongoDB / Big Data/ Hadoop / Machine Learning / Cloud / Amazon EC2

Updated on June 26, 2022

Comments

  • Jasper
    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
    Jasper almost 9 years
    Fouad > I do not see hash key form field on developers page itself
  • Fouad Wahabi
    Fouad Wahabi almost 9 years
    you 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
    Jasper almost 9 years
    The app exists of course, but i see no way of adding hash key for my own app
  • Jasper
    Jasper almost 9 years
    Fouad> 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
    Fouad Wahabi almost 9 years
    Nope , 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
    Jasper almost 9 years
    Existing App ... no way to change the key hash?
  • Raghu Mudem
    Raghu Mudem almost 9 years
    You 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
    Raghu Mudem almost 9 years
    If not find select "Settings" from left panel and select "Add platform" select android.
  • Fouad Wahabi
    Fouad Wahabi almost 9 years
    @downvoter shame on you, you think you have enough knowledge to judge my answer as not useful ?