flutter_facebook_login icon indicating copy to clipboard operation
flutter_facebook_login copied to clipboard

Status is always FacebookLoginStatus.cancelledByUser on iOS 13.1

Open bizz84 opened this issue 6 years ago • 23 comments

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.

bizz84 avatar Nov 04 '19 09:11 bizz84

same as me

xingfukun avatar Nov 05 '19 11:11 xingfukun

same here :(

nickrivers avatar Nov 07 '19 12:11 nickrivers

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

envyram avatar Nov 07 '19 22:11 envyram

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

envyram avatar Nov 08 '19 00:11 envyram

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

eatyours0up avatar Nov 10 '19 22:11 eatyours0up

+1

vAugagneur avatar Nov 23 '19 12:11 vAugagneur

Same issue with 13.2

pjmanning avatar Dec 01 '19 23:12 pjmanning

Any news about this iOS 13 bug ?

vAugagneur avatar Dec 03 '19 09:12 vAugagneur

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

trey-rosius avatar Dec 05 '19 20:12 trey-rosius

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

jessetinell avatar Dec 10 '19 15:12 jessetinell

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

QuentinG3 avatar Dec 12 '19 09:12 QuentinG3

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

ramiechaarani avatar Dec 14 '19 18:12 ramiechaarani

Hi,

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

toonztudio avatar Dec 15 '19 06:12 toonztudio

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.

kareldebedts avatar Jan 08 '20 19:01 kareldebedts

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.

enzobonggio avatar Jan 30 '20 15:01 enzobonggio

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

0xecute avatar Feb 02 '20 14:02 0xecute

Any updates on this ?

youneshenniwrites avatar Feb 12 '20 17:02 youneshenniwrites

No news?

UPD: webViewOnly + 2.0.1 works for me

voby avatar Feb 24 '20 12:02 voby

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 avatar Mar 04 '20 20:03 kareldebedts

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

kareldebedts avatar Mar 19 '20 15:03 kareldebedts

No updates?

zmeid avatar Aug 08 '20 23:08 zmeid

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

Xgamefactory avatar Aug 12 '20 01:08 Xgamefactory

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

tzvc avatar Sep 06 '20 12:09 tzvc