Generating A Release Key Hash Facebook
Posted By admin On 16.04.20Key hash is secure encrypted key created by mobile application developer from his own computer system. Key hash authenticates the information between your application and Facebook server. Adding key hash in Facebook developers console is mandatory and if you want to use the Facebook Login in your android mobile application then you have to add the key hash. In this tutorial we would Generate Release key hash for Facebook Login in Android devices. We would generate the key has in our windows system. Using this tutorial you can generate key hash in any windows system. So let’s get started :).
Jan 18, 2018 1) Launch your app and try to log in with facebook. A dialog will open and tell you: 'the key has not been found in the facebook developer console and also show the hash key. 2) Note down that hash key. 3) Put it into your facebook developer console where you first generated your api key and remove the hash key with new and save. Facebook SDK uses two different keys, one is Debug key which you can use during your development phase and other is Release key which is used once you create a signed application package. Here is a link about how to create debug and release keys. Also check out this SO post.
Mar 19, 2014 Hi Guys, I'm using Facebook official SDK into a Unity game for Android. According to the FB documentation, I can see the debug key hash when I go to Facebook - Edit Settings. I've added this key hash into the app developer page on Facebook. It works fine when I build the android apk unsigned.
Contents in this project Generate Release key hash for Facebook Login in Android App in Windows System:
1. Download Open SSL software from Google Code.
2. Extract the OpenSSL in your C drive like i did in below screenshot.
3. Now you need to locate the debug.keystore file which will be present in your .android folder. Location of .android folder is C:UsersYourUserName.android . Simply copy the debug.keystore file.4. Now we need to paste the copied debug.keystore file into your JDK’S BIN folder. My JDK’s bin folder is located at C:Program FilesJavajdk1.8.0_92bin . Paste the copied file here.
5. Start Command Prompt as Run as Administrator mode & Open the JDK’S bin folder in CMD.
6. Paste the below line of code and press enter. It will ask you a password so enter android as password.
openssl sha1-binary debugkey.txt>debug_hash_key.txt |
9. Again execute below command.