roughike / flutter_facebook_login

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

Firebase Facebook login internal error on iOS #56

Open ghost opened 5 years ago

ghost commented 5 years ago

I'm trying to implement Firebase Facebook login but it throws an error says like so.

PlatformException(sign_in_failed, FIRAuthErrorDomain, An internal error has occurred, print and inspect the error details for more information.)

I enabled Facebook method and paste code in plist.
Do you have any idea?

Code

    try {
      final FacebookLogin facebookLogin = FacebookLogin();
      final result = await facebookLogin.logInWithReadPermissions(['email']);
      switch (result.status) {
        case FacebookLoginStatus.loggedIn: 
          final FirebaseUser user = await FirebaseAuth.instance.signInWithFacebook(accessToken: result.accessToken.token);
          print(user.uid);
        break;
        case FacebookLoginStatus.error:
          print('ERROR');
          break;
        default:
          break;
      }
     } catch (e) {
        print(e);
    }
adavis commented 5 years ago

Did you ever figure this out? I get the same error.

ghost commented 5 years ago

Unfortunately no:( I ended up not using facebook login.

roughike commented 5 years ago

I haven't tried it, but I would take a look into: