Closed MaximeDelhorme closed 9 months ago
This plugin only makes a request to the Facebook graph api when you are trying to get the user data. So this is not an issue of this plugin. Please go to the Facebook developers community to try to find a solution
Ok thanks for the comment
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, iOS
pubspec.yaml
Describe the Bug
I installed the library and manage to login on Android and iOS, but when I query the userdata, email always returns empty even though I have permission granted and advanced access turned on in the meta app page:
I am logging with an email linked to an admin role in the meta page. Here is a subset of the code I use:
Here are the output of print statements (replaced privte info by ): flutter: [email, public_profile, openid] flutter: Instance of 'Future<Map<String, dynamic>>' flutter: [User(displayName: email: null, isEmailVerified: false, isAnonymous: false, metadata: UserMetadata(creationTime: 2023-08-05 13:08:57.946Z, lastSignInTime: 2023-08-05 14:25:52.568Z), phoneNumber: null, photoURL: , providerData, [UserInfo(displayName: , email: null, phoneNumber: null, photoURL: null, providerId: facebook.com, uid: )], refreshToken:, tenantId: null, uid: ***), false]
I get this problem on both Android (simulator) and iOS (phone)
Expected Behavior
I expect to be able to retrieve the email address of the user. It used to work correctly, not sure what changed.
To Reproduce
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