Facebook App Links allow you to deep link users from Facebook ads, posts, and other sources directly into specific content in your app. Deferred App Links work even if the user hasn’t installed your app yet.
What are Deferred App Links?
Deferred App Links enable you to send new users to the App Store or Google Play to install your app, and then deep link them to specific content after installation. This is particularly useful for:
- Ad campaigns - Send users directly to a product page from an ad
- Referral programs - Deep link to a referral signup page
- Content sharing - Link to specific posts or articles
- Promotional campaigns - Direct users to special offers
Basic Usage
Fetching a Deferred App Link
Handling Deep Links on App Launch
Complete Examples
E-commerce App
Content App
Referral Program
Using with React Navigation
Deep Link Configuration
App Tracking Transparency (iOS)
Important for iOS: Deferred App Links require App Tracking Transparency (ATT) permission on iOS. Both your app and the Facebook app must have ATT permission granted.
Requesting ATT Permission
URL Parsing Helpers
Custom Hook for App Links
Usage
Best Practices
- Check early - Fetch deferred app links as soon as possible during app startup
- Request ATT on iOS - Always request tracking permission before fetching deferred links
- Handle null gracefully -
fetchDeferredAppLink() returns null if no link is available
- Parse defensively - Always validate and sanitize deep link URLs
- Track attribution - Use deep link parameters to track campaign performance
- Test thoroughly - Test on both fresh installs and existing users
- One-time fetch - Deferred links are typically only available on first launch
Troubleshooting
Deferred Links Not Working on iOS
- Check ATT permission - Both your app and Facebook app need ATT permission
- Verify Facebook app is installed - The Facebook app must be logged in
- Check app configuration - Ensure your app is properly configured in Facebook dashboard
- Test on a real device - Deferred links don’t work in simulators
Links Not Being Received
- Call fetchDeferredAppLink early - Call it during app initialization
- Check only once - Deferred links are consumed on first fetch
- Verify link format - Ensure your deep link URLs match your app’s URL scheme
- Check Facebook campaign - Verify your Facebook ad/post is configured for App Links
API Reference
AppLink Methods