Last active
November 15, 2022 15:15
-
-
Save samuelbezerrab/679db2cc006bb8819fcdf817a5d467e6 to your computer and use it in GitHub Desktop.
Facebook app Key Hash from Google Play App signing key certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # FROM GOOGLE PLAY: | |
| echo YOUR_SHA1_HASH | xxd -r -p | openssl base64 | |
| ## The YOUR_SHA1_HASH is the hash code of the certificate (signing key) fingerprint of the app. | |
| 1. Go to Play Console (https://play.google.com/apps/publish); | |
| 2. Click on your app; | |
| 3. On the Left Menu, click on "Setup" > "App Integrity" | |
| 4. Now, copy the "SHA-1 certificate fingerprint" and use it to replace the value of YOUR_SHA1_HASH | |
| 5. Your code, now, is something like this: | |
| echo F2:89:6B:C0:09:77:C9:49:71:8D:48:97:14:51:82:76:1C:4B:1C:07 | xxd -r -p | openssl base64 | |
| 5. Execute the code and copy the generated hash to Facebook Developer Portal. | |
| 6. Done! | |
| # LOCAL KEYSTORE: | |
| keytool -exportcert -alias <aliasName> -keystore <keystoreFilePath> | openssl sha1 -binary | openssl base64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment