Closed mycar98765 closed 5 months ago
Edit: I added the email permission in the Meta Developers console and it worked.
Same, did you find a solution?
@manav-kasare @mycar98765 keep in mind that this plugin only connect with the native facebook sdk so when you get the user profile data you only are making a http request to the graph API. You need to go to your facebook developers console and check that you have the right options enabled to be able to get the email user.
@darwin-morocho @manav-kasare Sorry for the late reply. I checked and I selected the correct option. Here are the options I chose:
@darwin-morocho Any updates?
Any update? No solution found till now
Any update? No solution found till now
Sorry but this is not an issue of this plugin. You need to go to your Facebook developer console and check what options you need to enable to be able to get the user email.
Keep in mind of this plugin only makes a simple http request to the graph api to get the user profile data using the session access token.
Add permissions parameter in the code
try {
final LoginResult result = await FacebookAuth.instance.login(
permissions: ['email', 'public_profile'],
);
What version are you using?
6.0.1
What OS and version are you using to local deploy your application?
macOS 13.5.1
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
I successfully logged into my Facebook account, but I can't seem to get their email.
Expected Behavior
I expected my Flutter app to create a Firebase Auth user using the Facebook user's email address.
To Reproduce
Here is some of my code:
Relevant log output
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