How to generate online release key hash or sha1 for Facebook in the android studio

How to generate release key hash or sha1 for Facebook in the Android studio, This section of the tutorial explains you how to get Key Hashes for the Android Facebook app. Facebook SDK integration to Android requires a key hash configuration.

sha1 for Facebook

Table of Contents

While integrating Facebook SDK, we need to configure Facebook API console with Key Hash. If a key hash is missing you will get App mis-configured error in the Facebook dashboard.

Download the facebook-android-sdk and configured a new app. In the application, settings enable the “Native Android app” and enable for Facebook login and deep linking. It asks for key hashes, and I’m stuck. After spending a generous amount of time, I have found two solutions to get the key hashes.

How to get Development Key Hashes and Release Key Hash for android app Facebook In Hindi
How to get Development Key Hashes and Release Key Hash for android app Facebook In Hindi

1. Using OpenSSL and command prompt

  • Download OpenSSL from Google code (If you have a 64-bit machine you must download OpenSSL-0.9.8e X64, not the latest version)
  • Extract it. Create a folder- OpenSSL in C: / and copy all files here
  • Find the “debug. keystore” file path. Most likely it will be inside the “C:\Users\\.android” folder. However, if you still don’t find then perform a search. I am sure you are lucky enough to get it.
  • Find the keytool.exe path. It will be inside your java/bin directory. In my system, it is under “C:\Program Files\Java\jdk1.6.0_30\bin”
  • Open the command prompt (Run-> cmd->start) and go to the java /bin folder (cd “C:\Program Files\Java\jdk1.6.0_30\bin” command will do it for you)
  • Now you run the below command. sha1 for Facebook
How to generate an online release key hash or sha1 for Facebook in the Android studio
How to generate an online release key hash or sha1 for Facebook in the Android studio

C:\\Program Files\\Java\\jdk1.6.0_30\\bin>keytool -exportcert -alias androiddebugkey -keystore “C:\\Users\\.android\\debug.keystore” | “C:\\OpenSSL\\bin\\openssl” sha1 -binary |”C:\\OpenSSL\bin\\openssl” base64

  • Provide a password (android), when you are prompted. You are done. It will generate you the key-hash sha1 for Facebook
How to get Development Key Hashes and Release Key Hash for android app Facebook In Hindi
How to get Development Key Hashes and Release Key Hash for Android app Facebook In Hindi

Alternative Method and its 100% working

Also Read Wondershare Filmora 13 Pre-Activated 2024 v13.0.60.5095

online-convert

https://www.youtube-nocookie.com/embed/dZBEecbDxoU

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *