Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compute key hash for Facebook from deployment_cert.der file?

I have uploaded my app APK to google and enabled app signing key to let google sign up my app .Now ,I need the deployment key hash requested by facebook ,I did downloaded the deployment_cert.der file used to generate fingerprints but i don't know how to compute the required Key hash by facebook.Please do not tell me how to generate key hash from key store since I already have generated the key hash for the testing purposes ,what I want know is the Key hash for the release version of my app APK which is signed by google .

like image 943
Odai A. Ali Avatar asked Jan 20 '19 08:01

Odai A. Ali


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.


1 Answers

enter image description here

from SHA-1 hash in hex format (as found in Play console) you can convert it into base64 hash code

example:

echo 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 | xxd -r -p | openssl base64

and then copy generated code to facebook dev account -> your app -> Basic Steeings -> Android -> Key Hashes

like image 67
Cristi Maris Avatar answered Oct 13 '22 00:10

Cristi Maris