darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
193 stars 127 forks source link

No email "identifier" saving in firebase #318

Closed erwinagpasa closed 1 year ago

erwinagpasa commented 1 year ago

What version are you using?

flutter_facebook_auth: ^5.0.7

What OS and version are you using to local deploy your application?

Android

What platforms are you seeing the problem on?

Android

pubspec.yaml

environment:
  sdk: '>=2.18.5 <3.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter
  bloc: ^8.1.0
  firebase_core: ^2.4.0
  firebase_auth: ^4.2.3
  equatable: ^2.0.5
  flutter_bloc: ^8.1.1
  google_sign_in: ^5.4.2
  email_validator: ^2.1.17
  social_login_buttons: ^1.0.7
  font_awesome_flutter: ^10.3.0
  flutter_native_splash: ^2.2.16
  flutter_facebook_auth: ^5.0.7
  cloud_firestore: ^4.3.1

Describe the Bug

No email "identifier" saving in firebase

Expected Behavior

it should have email saved in firebase

To Reproduce

n/a

Relevant log output

No response

flutter doctor -v

n/a

Info.plist (iOS)

No response

Podfile (iOS)

No response

AndroidManifest.xml

No response

MainActivity.java

No response

MainActivity.kt

No response

index.html

No response

Info.plist (macOS)

No response

darwin-morocho commented 1 year ago

@erwinagpasa keep in mind that if you are using firebase auth and you are not getting the email that is not a bug of this plugin because this plugin get an access token that is passed to firebase auth. You should check in your Facebook console if your app is authorized to get the user email

erwinagpasa commented 1 year ago

it's working fine, Second sign in will not save the email because it's already saved in the first sign in.

Thanks bro