Skip to content

Instantly share code, notes, and snippets.

@Shubham-Narkhede
Last active April 16, 2020 07:56
Show Gist options
  • Save Shubham-Narkhede/99c5ca0ac3f3bfff2e51341f09be2c0a to your computer and use it in GitHub Desktop.
Save Shubham-Narkhede/99c5ca0ac3f3bfff2e51341f09be2c0a to your computer and use it in GitHub Desktop.
Future facebookLogin() async {
final FacebookLoginResult result =
await facebookSignIn.logInWithReadPermissions(['email']);
switch (result.status) {
case FacebookLoginStatus.loggedIn:
final FacebookAccessToken accessToken = result.accessToken;
break;
case FacebookLoginStatus.cancelledByUser:
break;
case FacebookLoginStatus.error:
break;
}
}
@egphp
Copy link

egphp commented Apr 16, 2020

error: Undefined name 'facebookSignIn'. (undefined_identifier at [christian_dogma] lib/main.dart:293)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment