Open juanjoserodrigolazaro opened 4 years ago
Same issue. On iOS working perfect on Testflight, but Android don't work.
Same issue here (Android).
@roughike any idea?
Hello everyone,
do not forget to add the Hash for Android in the configuration (facebook developer console).
I have resolved it by generating key hashes which is generated using android keystore file. Then added release key hash in facebook android configuration. Followed this instruction.
Please notice that you can have problems depending on the end-user device, for example if I have NOT the Facebook app installed, then everything works fine. The login comes in a webview.
If I try with the facebook app active, then the login try to use the native FB app and it can throw an error if my app key hash is not properly configured.
A workaround is to force the webview using:
facebookLogin.loginBehavior = FacebookLoginBehavior.webViewOnly;
having my hash configures but still some androids fail to login
I had configures hash key on Fb app, on Simulator which works well, but released version not work on real device (Samsung Note 9).
I had login issues with just a set of devices (!?), while for the majority of our users the login was working perfectly in production. After some debugging, the error message we got was that the hash key did not match.
The steps below solved the problem.
If you use Google Play App Signing:
Alternative:
app.aab
(bundle)keytool -list -printcert -jarfile app.aab
@viniciuszani thanks! Finding the solution for this drove me crazy, as the signing cert through play store isn't mentioned anywhere. Makes sense of course now but the documentation should definitely reflect this as a hint somewhere.
I had login issues with just a set of devices (!?), while for the majority of our users the login was working perfectly in production. After some debugging, the error message we got was that the hash key did not match.
The steps below solved the problem.
If you use Google Play App Signing:
- Go to Google Play Console -> Release Management -> App signig
- In the App signing certificate, copy the SHA-1 certificate fingerprint value (AA:BB:CC...)
- Use this tool to convert it to base64: http://tomeko.net/online_tools/hex_to_base64.php
- Repeat the process with the Upload certificate SHA-1 certificate fingerprint
- Open https://developers.facebook.com/ and go to Configuration -> Basic -> scroll to Android
- Paste the base64 generated values in the key hashes and save it
Alternative:
- Generate your appbundle or apk using your tools (android studio, flutter, react native...) - here my example output will be
app.aab
(bundle)- Go to the generated file using your terminal
- Run
keytool -list -printcert -jarfile app.aab
- Copy the SHA-1 fingerprint and use steps 3-6 from the previous list
Thank @viniciuszani this is helped me.
Hello, im using version 3.0.0 on my apps, when i test them there is no problem with this plugin but when i release the apps (android and ios) it does not work (the app on facebook developers is active not in development).