darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
194 stars 129 forks source link

Limited login email issue #403

Open blizzy312 opened 2 weeks ago

blizzy312 commented 2 weeks ago

What version are you using?

flutter_facebook_auth:7.0.0-dev.6

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

macOS 13.5.2

What platforms are you seeing the problem on?

iOS

pubspec.yaml

flutter_facebook_auth: ^7.0.0-dev.6

Describe the Bug

Hi! Thank you for your hard work. I've been trying to test limited login for IOS in your latest dev branch [7.0.0-dev.6]. But noticed that 'userEmail' is a non-nullable string, which just fails for my test user that didn't have assigned email. I know that this is still 'dev' branch, but I hope it will be fixed in the next stable release. Thanks.

Expected Behavior

'userEmail' is nullable string, as not all users have assigned emails.

To Reproduce

Login with user that doesn't have assigned email

Relevant log output

type 'Null' is not a subtype of type 'String'
flutter:  new LimitedToken.fromJson (package:flutter_facebook_auth_platform_interface/src/access_token.dart:37:22)
flutter:  FacebookAuthPlatformImplementation.accessToken (package:flutter_facebook_auth_platform_interface/src/facebook_auth_implementation.dart:106:26)

flutter doctor -v

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.1, on macOS 13.5.2 22G91 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.85.0)
[✓] VS Code (version 1.85.0-insider)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

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 2 weeks ago

Check 7.0.0