Closed robtong21 closed 4 years ago
Latest version 3.0.0 solved your problem
For version 2.0.1
As per the issue list for the plugin this is a bug for iOS 13 (https://github.com/roughike/flutter_facebook_login/issues/195)
Use the device_info package and you can put the following check for the iOS 13 device so the rest of the world enjoys the native view
if (Platform.isIOS){
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
String iosSystemVersion = iosInfo.systemVersion;
if (iosSystemVersion.startsWith('13')){
print('Running on IOS version $iosSystemVersion. Forcing facebook login to be
webViewOnly');
_facebookSignIn.loginBehavior = FacebookLoginBehavior.webViewOnly;
}
}
Thank you very much, @Gursewak-Uppal. I saw that issue you referred to but didn't think it applied to my situation.
I have ^2.0.1 of flutter_facebook_login plugin in pubspec.yml.
I've registered my app with Facebook according to the FB developer iOS docs, following steps 1, 3 & 4.
I enabled Facebook signin on Firebase, adding the OAuth Redirect URI from Firebase to the Facebook Login settings in the Facebook dashboard for the app.
My auth code when clicking the FB login button: