Skip to main content
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. 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

Complete Examples

Using with React Navigation

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

Usage

Best Practices

  1. Check early - Fetch deferred app links as soon as possible during app startup
  2. Request ATT on iOS - Always request tracking permission before fetching deferred links
  3. Handle null gracefully - fetchDeferredAppLink() returns null if no link is available
  4. Parse defensively - Always validate and sanitize deep link URLs
  5. Track attribution - Use deep link parameters to track campaign performance
  6. Test thoroughly - Test on both fresh installs and existing users
  7. One-time fetch - Deferred links are typically only available on first launch

Troubleshooting

  1. Check ATT permission - Both your app and Facebook app need ATT permission
  2. Verify Facebook app is installed - The Facebook app must be logged in
  3. Check app configuration - Ensure your app is properly configured in Facebook dashboard
  4. Test on a real device - Deferred links don’t work in simulators
  1. Call fetchDeferredAppLink early - Call it during app initialization
  2. Check only once - Deferred links are consumed on first fetch
  3. Verify link format - Ensure your deep link URLs match your app’s URL scheme
  4. Check Facebook campaign - Verify your Facebook ad/post is configured for App Links

API Reference