Skip to main content
Facebook Login allows users to authenticate with their Facebook account. The SDK provides both UI components and programmatic APIs to implement login.

LoginButton Component

The easiest way to add Facebook login is using the LoginButton component, which renders a styled button that handles the entire login flow.

Basic Usage

Getting the Access Token

After a successful login, retrieve the access token:

LoginManager API

For custom UI or more control over the login flow, use the LoginManager API.

Requesting Permissions

Requesting Additional Permissions

Logging Out

Limited Login (iOS)

Limited Login is required for iOS if using React Native FBSDK Next >= 13.0.0. It allows users who have opted out of App Tracking Transparency to still use Facebook login.

LoginButton with Limited Login

LoginManager with Limited Login

An AuthenticationToken from Limited Login cannot be used to access the Graph API. Attempting to do so will result in an “Invalid OAuth access token” error.

Login Configuration

Setting Login Behavior (Android)

Setting Default Audience

Control who can see posts made by your app:

Re-authorizing Data Access

Request updated permissions from users:

Common Login Flows

Available Permissions

Common permissions you can request:
  • public_profile - Basic profile information (default)
  • email - User’s email address
  • user_friends - List of user’s friends who also use your app
  • user_birthday - User’s birthday
  • user_location - User’s location
  • user_hometown - User’s hometown
Some permissions require your app to be reviewed by Facebook before they can be used in production.

API Reference

LoginManager Methods

LoginResult Properties