Skip to content
pubscout

flutter_login_facebook

4.0.0, released 6 months ago by innim.ru

Flutter plugin to add Facebook login and user profile information to your app.

$ flutter pub add flutter_login_facebook
Source repository

What it does

Allows users to log into a Flutter application using their Facebook accounts. It provides access tokens, user profile information, profile image URLs, and email addresses.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to allow users to sign in or sign up using their Facebook accounts.
  • Your application targets both Android and iOS platforms.

Skip it when

  • You do not require Facebook authentication in your application.
  • You prefer using a backend-as-a-service provider like Firebase Authentication to handle all social logins.

Strengths

  • Includes user profile and email retrieval capabilities.
  • Supports Swift Package Manager (SPM) alongside CocoaPods on iOS.
  • Up-to-date with recent Facebook Android and iOS SDK versions.

Weaknesses

  • Requires manual native configuration on both Android (XML resources, Manifest, Key Hashes) and iOS (Info.plist).
  • Limited Login mode on iOS requires additional OIDC token validation for server-side verification.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
1

Requires creating a Facebook app, configuring Android strings.xml, AndroidManifest.xml, release/debug key hashes, and editing iOS Info.plist with URL schemes and App IDs.

import 'package:flutter_login_facebook/flutter_login_facebook.dart';

final fb = FacebookLogin();
final res = await fb.logIn(permissions: [
  FacebookPermission.publicProfile,
  FacebookPermission.email,
]);

Alternatives

Packages that do the same job and could replace flutter_login_facebook.

  • firebase_auth

    If you are already using Firebase for backend services and want an integrated authentication system that supports Facebook login.

Works with

Packages commonly used together with flutter_login_facebook: ones it builds on, ones built on it, and its own family.