Closed justforworkandstuff closed 7 months ago
@justforworkandstuff if you are using an emulator keep in mind that the chrome app must be updated to handle the chrome tab opened by the facebook sdk when the app is not installed.
In that cases try to use a real device for your tests
hi @darwin-morocho, thanks a lot for the prompt reply on this!
For your information, I've did managed to test this issue out on both the emulator and real devices.
Seems like both cases are showing the same error.
Additional info with testing devices and chrome version: Xiaomi 11T Pro - v119.0.6045.135 Huawei Mate 9 - v119.0.6045.134 Pixel 2 API 32 (Emulator) - v91.0.4472.114 (Can't update the chrome version somehow)
Perhaps you could try to reproduce the issue? Thanks a lot.
Facing the same problem. Tried logging the LoginResult returned post login, and found this:
FB LoginResult: status=LoginStatus.cancelled, message=User has cancelled login with facebook, token=null
@justforworkandstuff Were you able to find a solution/workaround for this?
@GreatGatsby108 sorry for the late reply, but I haven't found any further idea on this.
I managed to test this on other apps that have Facebook login as well (but I am not sure the framework it was in) of the same platform (Android), I was able to login successfully. So I think that seems like an issue with this package.
I have tested the login Flow without any problem. Sorry but keep in mind that this plugin only wraps the native sdk with the dart code. If the login Flow does not work for you there are a lot of reasons like
mean while your app is in development mode you cannot use real account for login.
you cam use a real account in development mode if the used account is the owner of the Facebook app in your console.
You have used invalid key hashes or your configuration into the console is wrong.
If the problem persists open an issue in the oficial repo https://github.com/facebook/facebook-android-sdk
Also FacebookActivity and CustomTabActivity are deprecated please check
What version are you using?
flutter_facebook_auth: ^5.0.11
What OS and version are you using to local deploy your application?
macOS 12.5
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
Facebook Login does not work if the user's device does not have the Facebook app installed. This happens in Android.
Attached videos for reference.
https://github.com/darwin-morocho/flutter-facebook-auth/assets/52436338/667344d6-1635-4145-8260-14b96048115d
Expected Behavior
Facebook login should proceed normally through web if no Facebook app is installed.
To Reproduce
Issue should be able to reproduce through the following steps:
proceedLoginFB()
Sample code to reproduce:
Relevant log output
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