intro
A plugin that easily adds Facebook authentication into you Flutter app. Feature includes getting user information, profile picture and more. This plugin also supports Web.
Features
- Login on iOS, Android, Web and macOS.
- Express login on Android.
- Granted and declined permissions.
- User information, picture profile and more.
- Provide an access token to make request to the Graph API.
Install
Add the following to your pubspec.yaml
dependencies:
flutter_facebook_auth: ^7.0.0
- BREAKING CHANGE since 6.x version your project must use dart 3.x or or higher.
In your
pubspec.yaml
make sure that you are using dart 3.x or or higher.environment:
sdk: ">=3.0.0 <4.0.0"
IMPORTANT
Upon installation of this plugin, configuration is needed on Android before running the project again. If this is not done, an error of No implementation found would show because the Facebook SDK on Android would throw an Exception error if the configuration is not yet defined. This error also locks the other plugins in your project, so if the plugin is not yet needed, either remove it or comment it out from the pubspec.yaml file.