Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Biodam/10871b10e9bdf561f4c7f3ef64d2ae6f to your computer and use it in GitHub Desktop.
Save Biodam/10871b10e9bdf561f4c7f3ef64d2ae6f to your computer and use it in GitHub Desktop.
This happens because the Facebook login through Facebook app on Android needs the correct hash of your Google Play Signing key.
Follow the steps from "B" on this post: https://forum.unity.com/threads/solved-problem-with-login-facebook-sdk-android.257482/#post-1709450
Copy paste here if the link goes offline:
B) The "Key Hash" generated in the Unity Engine was wrong. So, now I am generating the Key Hash through the steps:
1. Unzip .apk file and extract META-INF\CERT.RSA file
2. In the Prompt, run: keytool -printcert -file CERT.RSA
3. notice SHA1 bytes are printed like 29:37:F1:CB:06…
4. copy SHA1 bytes into HEX to BASE64 converter (http://tomeko.net/online_tools/hex_to_base64.php)
5. see your BASE64 key hash in output field
Post this Base64 key hash on your developer Facebook app settings page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment