Skip to main content
React Native FBSDK Next provides multiple ways to implement Facebook Login, each suited for different use cases and UI requirements.

Login Button

The easiest way to add Facebook Login is using the pre-built LoginButton component.

Basic Usage

Requesting Permissions

Customizing Appearance

Platform-Specific Props

iOS Props

Android Props

Login Manager

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

Basic Login

Custom Login Button

iOS Limited Login

Configuring Login Behavior

Android Login Behavior

Control how the login dialog appears on Android:
Available behaviors:
  • native_with_fallback (default) - Try Facebook app, fall back to web
  • native_only - Only use Facebook app
  • web_only - Only use web dialog

iOS Login Behavior

iOS always uses browser-based login (Safari or in-app browser). No configuration needed.

Default Audience

Set the default audience for posts made by your app:
Available audiences:
  • friends - Only friends can see posts
  • everyone - All Facebook users can see posts
  • only_me - Only the user can see posts

Handling Login Results

Success State

Cancelled State

Error Handling

Requesting Additional Permissions

You can request additional permissions after initial login:

Re-authorizing Data Access

Data access permissions expire periodically. Re-authorize when needed:

Logging Out

Log out the current user:

Complete Login Flow Example

See Also

Authentication

Learn about access tokens and authentication tokens

Limited Login

Understand iOS Limited Login requirements

Login Manager API

Complete API reference for LoginManager

Login Button API

Complete API reference for LoginButton