Create a Facebook App for Facebook Login
Facebook Login is optional. Use this guide only if your purchased app includes Facebook Login and you want to keep that provider enabled in production.
Quick Answer
Create your own Facebook app, enable Facebook as a Firebase Auth sign-in provider, add the Firebase OAuth redirect URI to the Facebook app, then configure iOS and Android with your own Facebook App ID.
Official Firebase references:
1. Create a Facebook Developer App
- Open Meta for Developers.
- Create a new app for your product.
- Add Facebook Login if it is not already enabled.
- Open Settings > Basic.
- Copy the App ID and App Secret.
Use a buyer-owned app. Do not ship with Instamobile demo Facebook credentials.
2. Enable Facebook in Firebase Auth
- Open Firebase Console.
- Go to Authentication > Sign-in method.
- Enable Facebook.
- Add the Facebook App ID and App Secret.
- Copy the OAuth redirect URI shown by Firebase.
The redirect URI usually looks similar to:
https://your-firebase-project.firebaseapp.com/__/auth/handler
3. Add the Redirect URI in Facebook Login
In Meta for Developers:
- Open your app.
- Go to Facebook Login > Settings.
- Add the Firebase OAuth redirect URI to Valid OAuth Redirect URIs.
- Save changes.
4. Update App Config
Search your React Native project for facebookIdentifier, FacebookAppID, facebook_app_id, or FB_APP_ID.
Example:
facebookIdentifier: 'your-facebook-app-id',
Then complete the platform-specific setup:
Production Checklist
- Facebook app belongs to the buyer or customer.
- Firebase Facebook provider is enabled in the production Firebase project.
- OAuth redirect URI is configured in Facebook Login settings.
- iOS bundle ID is added in Meta app settings.
- Android package name and key hashes are added in Meta app settings.
- App review and required permissions are completed if Meta requires them.
- Login has been tested on real iOS and Android devices.
FAQ
Do all Instamobile apps require Facebook Login?
No. Keep it only when the product uses it. If your app does not need Facebook Login, remove or hide the provider from the login UI and keep Firebase Auth providers limited to what you support.