Flutter_facebook_login: error 3.0.0.. logInWithReadPermissions does not exist

Created on 30 Sep 2019  路  5Comments  路  Source: roughike/flutter_facebook_login

Hello,
I upgraded from 2.0.0 to 3.0.0 and I getting an error when I am building the app

Error: The method 'logInWithReadPermissions' isn't defined for the class 'FacebookLogin'.

Please let me know how to resolve this issue

Thanks

Most helpful comment

in flutter file, update function logInWithReadPermissionsto logIn. I set an example below.

    var facebookLogin = new FacebookLogin();
    List<String> permissions = ["public_profile"];
    var result = await facebookLogin.logIn(permissions);

All 5 comments

This method has been changed. Try 'logIn'

Thank you.. I will try it and let you know

in flutter file, update function logInWithReadPermissionsto logIn. I set an example below.

    var facebookLogin = new FacebookLogin();
    List<String> permissions = ["public_profile"];
    var result = await facebookLogin.logIn(permissions);

thanks

@roughike I ran into the same issue, as the example code is still referencing 'logInWithReadPermissions'. Can this be updated so it is clear the function was renamed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oscarshaitan picture oscarshaitan  路  8Comments

zainzafar90 picture zainzafar90  路  6Comments

mis0025033 picture mis0025033  路  8Comments

nsmith1024 picture nsmith1024  路  6Comments

deckerst picture deckerst  路  4Comments