Closed ara-rebwar closed 1 year ago
Hi @ara-kurd-dev this is not an issue of this plugin.
To test the facebook login you must register your key hashes in your facebook developer console.
At least you must generate the key hash for your debug keystore and add it to your console https://developers.facebook.com/docs/facebook-login/android?locale=en_US#6--provide-the-development-and-release-key-hashes-for-your-app
If your app is running in debug mode your app by default will be signed with the debug keystore.
if you run your app using flutter run --release
your app is running in release mode so you must check what keystore are you using to sign your app (android/app/build.gradle)
by default your app will be using the debug keystore for release mode
If you are using a different keystore for release like the next image you must generate the key hashes for debug and release keystore and add them to your console
Also when you are publishing your app in the google play this will sign the app with a new keystore so you also must generate the key hash from the google play console and add it to the facebook console
What version are you using?
flutter_facebook_auth: ^4.4.0+1
What OS and version are you using to local deploy your application?
macOS 11.6
What platforms are you seeing the problem on?
Android, iOS
pubspec.yaml
Describe the Bug
When I click to authorize my app with Facebook give me this error:
I searched for it and what I get was the main cause of this issue is that the hash key was created from my computer must be the same as the google play developer account but at this moment I just want to test it on my own phone for this purpose I ran:
flutter build apk --release
and send to my phones. and when I installed them click on the button to log in to my own app by Facebook authentication gave me the uploaded image error.Expected Behavior
I want to view the Facebook authentication dialog correctly.
To Reproduce
this the code of the clicked button:
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
MainActivity.java
No response
MainActivity.kt
index.html
No response
Info.plist (macOS)
No response