Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Key Hash for Play Store Release

I have created a hash key for my android app which is using Facebook SDK. However, now I want to create the hash key for 'release' version of my app. For that I am using a different keystore.

I have the following syntax :

keytool -exportcert -alias MY_ALIAS_HERE -keystore ~/path/to/my/android.keystore | openssl sha1 -binary | openssl base64

Here, MY_ALIAS_HERE is the alias present in that keystore file? Or something other? Also, the password is 'android' or something else like the password for that alias in keystore file?

Thanks a lot.. :)

like image 320
tigerden Avatar asked Aug 12 '13 11:08

tigerden


People also ask

How do I configure app key hashes on Facebook?

Steps : Go to facebook developer's page : https://developers.facebook.com/ Open the App tabs and than click the Setting. Paste the generate hashkey on HashKey's field = If you don't have it yet, get your key hash part of code.


2 Answers

mdDroid answer is correct. You just missed to give the path of your openssl. if you don't find openssl.exe file in your C: drive, just download openssl from here. Then replace "openssl" with the path of openssl.exe file like

C:\bin\openssl

i install openssl in C: drive thats why this is the path of my openssl, your openssl path should be the path of openssl.exe files location. Now try the ans of @mdDroid. you should get your key hash. Happy coding ...... :)

like image 153
mnsalim Avatar answered Oct 17 '22 08:10

mnsalim


Replace my path and alias to your,

"C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe" -exportcert -alias manoj -keystore c:\users\manoj\desktop\manoj.kp | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64
like image 31
mdDroid Avatar answered Oct 17 '22 08:10

mdDroid