roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
405 stars 331 forks source link

Status is always FacebookLoginStatus.cancelledByUser on iOS 13.1 #210

Open bizz84 opened 4 years ago

bizz84 commented 4 years ago

Running this code on iOS 13.1 always leads to cancelledByUser, but the Facebook sign-in page is never presented:

    final facebookLogin = FacebookLogin();
    final result = await facebookLogin.logInWithReadPermissions(
      ['public_profile'],
    );
    // `result.status` is always `FacebookLoginStatus.cancelledByUser`

So Facebook sign-in is not possible at all on iOS 13.1.

xingfukun commented 4 years ago

same as me

nickrivers commented 4 years ago

same here :(

envyram commented 4 years ago

I have the same issue. Oddly it occurs only on release mode. Works OK on debug mode

envyram commented 4 years ago

Running this code on iOS 13.1 always leads to cancelledByUser, but the Facebook sign-in page is never presented:

    final facebookLogin = FacebookLogin();
    final result = await facebookLogin.logInWithReadPermissions(
      ['public_profile'],
    );
    // `result.status` is always `FacebookLoginStatus.cancelledByUser`

So Facebook sign-in is not possible at all on iOS 13.1.

If this will be on help and as a work around, I just forced webview: final fbLogin =FacebookLogin(); fbLogin.loginBehavior = FacebookLoginBehavior.webViewOnly;

Seems to work on iOS as well as Android

eatyours0up commented 4 years ago

I'm having this same issue, using FacebookLoginBehavior.webViewOnly does not work for me.

vAugagneur commented 4 years ago

+1

pjmanning commented 4 years ago

Same issue with 13.2

vAugagneur commented 4 years ago

Any news about this iOS 13 bug ?

trey-rosius commented 4 years ago

My users just encountered this bug now. @roughike . Anything we can do about this ?

jessetinell commented 4 years ago

Having the same issue. Forcing webview seems to be working for me (iOS 13.2.2): facebookLogin.loginBehavior = FacebookLoginBehavior.webViewOnly;

QuentinG3 commented 4 years ago

Same problem here. Any news on this? I am forced to use the webview option :(

ramiechaarani commented 4 years ago

Woudl love to hear about any other news on this as I am now forced to use the webview option.

toonztudio commented 4 years ago

Hi,

I can confirm FacebookLoginBehavior.webViewOnly is work on IOS13. thanks, @envyram and @jessetinell for the solution.

kareldebedts commented 4 years ago

WebViews works, but it’s a bit inconvenient: if a user has the FB app (and is logged in) the WebView will ask the email and password (because it doesn’t communicate with the fb app?). Normally you should get a screen where you just have to tap one button.

enzobonggio commented 4 years ago

Hi! That is not a solution, if we do WebView it will ask for password and username all the time. I'm getting the error from time to time.

0xecute commented 4 years ago

Same issue on my side. Not possible to use WebView as it is not convenient for users to log in again...

youneshenniwrites commented 4 years ago

Any updates on this ?

voby commented 4 years ago

No news?

UPD: webViewOnly + 2.0.1 works for me

kareldebedts commented 4 years ago

Don't know if the facebookLogin.loginBehavior = FacebookLoginBehavior.webViewOnly; is causing it. But if I submit my app to Apple (App Store connect). They say apps that use UI web view will no longer be accepted (starting April 2020). Could be problematic.

kareldebedts commented 4 years ago

https://medium.com/@karlwhiteprivate/flutter-facebook-sign-in-with-firebase-in-2020-66556a8c3586

zmeid commented 4 years ago

No updates?

Xgamefactory commented 4 years ago

plugin seem to abandoned. there is updated plugin https://pub.dev/packages/flutter_login_facebook not used before but this plugin not reliable anymore.

tzvc commented 4 years ago

@Xgamefactory does this plugin alleviate the problem presented in https://medium.com/@karlwhiteprivate/flutter-facebook-sign-in-with-firebase-in-2020-66556a8c3586 ?