Closed arisAlexis closed 11 months ago
@arisAlexis same issue here, @darwin-morocho any solution yet?
@arisAlexis @iamnabink the issue must include the android logs to have an idea that what is happenning.
By the way. In Windows the debug key hash generated by using the cmd is not valid.
Check https://developers.facebook.com/docs/facebook-login/android/troubleshooting
Also this issue must be opened in the official Facebook sdk repository https://github.com/facebook/facebook-android-sdk
Most likely an issue on the Facebook side. I am also experiencing this issue, was able to login only once (then unable after logging out and in) after reinstalling the Facebook app. Still looking into this, will update when I get more info
UPDATE (6 hours later): now it is working without any problems they must have fixed it
@darwin-morocho how to get the android logs? When the FB app opens and I get the login error there is no flutter error caught because it's outside of my app. I still haven't been able to login correctly. The hashes are correct triple-checked.
In the docs you say "If want to test the login flow with the native facebook app and your app is in developing mode your account must be added to the developer team https://developers.facebook.com/docs/development/build-and-test/app-roles"
I can't add myself as a developer because I am the admin and you can't change roles it gives you an error. I am instead trying to login with a Test User. The app is not live. Do you think that's the problem?
@iamnabink did you solve your problem?
@darwin-morocho how to get the android logs? When the FB app opens and I get the login error there is no flutter error caught because it's outside of my app. I still haven't been able to login correctly. The hashes are correct triple-checked.
In the docs you say "If want to test the login flow with the native facebook app and your app is in developing mode your account must be added to the developer team https://developers.facebook.com/docs/development/build-and-test/app-roles"
I can't add myself as a developer because I am the admin and you can't change roles it gives you an error. I am instead trying to login with a Test User. The app is not live. Do you think that's the problem?
@iamnabink did you solve your problem?
You must run the android project in android studio and use the LOG CAT to watch the crash errors or any additional errors in your device
had an app revamp and it started working although both times the hashes were correct so i'll close it for now.
What version are you using?
5.0.7
What OS and version are you using to local deploy your application?
Windows 11
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
Login error after launching the FB native app. All the configuration seems valid, I have put all the debug and release hashes, I have configured it on FB console, manifest files and on my emulator I am logged in with a test user account from this app because it's not live yet. I have asked permission for email and public profile.
Expected Behavior
login
To Reproduce
final LoginResult loginResult = await FacebookAuth.instance.login();
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
No response
index.html
No response
Info.plist (macOS)
No response