Installation
1
Install the package
2
Add the config plugin
Add the config plugin to your
app.json or app.config.js:3
Rebuild your app
Configuration Options
Required Configuration
Optional Configuration
Example Configuration
Here’s a complete example with all options:Enabling Auto App Installs
To enable automatic app install tracking in Expo:1
Update configuration
Set both flags to
true in your config:2
Request tracking permission (iOS)
Add this code somewhere in your
App.tsx or main app component:Expo Bare Workflow - iOS AppDelegate Setup
If you’re using Expo Bare Workflow with React Native 0.77+, yourAppDelegate.swift will extend ExpoAppDelegate instead of the standard React Native app delegate.
Required Imports
Example Implementation
Migrating from expo-facebook
Theexpo-facebook module was deprecated in Expo SDK 45 and removed in SDK 46. Here are the key differences:
Key Changes
- Client Token is Required: Unlike
expo-facebook, theclientTokenfield is mandatory - Different API: The JavaScript API has changed significantly
- New Package Name: Use
react-native-fbsdk-nextinstead ofexpo-facebook
Feature Parity Table
Android Setup
For Android-specific setup (key hashes, strings.xml, etc.), the config plugin handles most of the configuration automatically. However, you may still need to:- Generate and add key hashes to Facebook Developer Console (especially for release builds)
- Configure ProGuard rules if using code obfuscation