> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkrunner.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Meta install referrer

Source: https://docs.linkrunner.io/features/meta-install-referrer

Receive ad campaign metadata from device storage for improved attribution

**Before you start**

- For: App developers
- Time: About 15 minutes
- You need: Your Facebook App ID, from Meta for Developers
- You need: Android SDK 3.5.2+, Flutter SDK 3.6.2+ or React Native SDK 2.6.2+

> **Note:**
>
> **Using an AI coding agent?** Have it set this up for you:
>
> ```bash
> npx @linkrunner/skills add meta-install-referrer
> ```
>
> The skill adds the Facebook App ID to your Android manifest and verifies the wiring. See [Linkrunner Agent Skills](https://docs.linkrunner.io/ai-agent-skills).

## Overview

Meta install referrer allows Linkrunner to receive ad campaign metadata from a device's local storage.

## Meta Install Referrer Basic Flow

The basic flow of the Meta install referrer mechanism is as follows:

1. Once the SDK initializes, it uses the app's Facebook App ID to make a request to the Meta Content Provider API, retrieving the stored metadata from the Facebook app.
2. Linkrunner SDK sends the install event, along with the attribution data, to the Linkrunner servers.

> **Tip:**
>
> Use the [Meta Android attribution testing guide](https://docs.linkrunner.io/testing/meta-android-attribution-testing) to verify the complete Ads Manager preview, install, and `getAttributionData()` flow.

## Prerequisites

To support the Meta install referrer, the following is required:

- **Android SDK**: Integrate with version 3.5.2 or higher.
- **Flutter SDK**: Integrate with version 3.6.2 or higher.
- **React Native SDK**: Integrate with version 2.6.2 or higher.
- **Facebook App Version**: Users must have version 428.x.x or above installed on their device.
- **Instagram App Version**: Users must have version 296.x.x or above installed on their device.

## Configure Meta Install Referrer Support

To enable Meta install referrer support make the Facebook App ID available to the SDK by adding it to the AndroidManifest.xml. This can be done either when integrating the Facebook SDK with the app or when integrating the Linkrunner SDK with the app.

### With Facebook SDK Integrated

Refer to [Facebook's official guide](https://developers.facebook.com/docs/android/getting-started) to learn how to add the Facebook App ID to your AndroidManifest.xml. The SDK will read the Facebook App ID from the meta-data tag.

### Without Facebook SDK Integration

Include the following tag in AndroidManifest.xml:

```xml
<meta-data android:name="com.linkrunner.FacebookApplicationId" android:value="@string/facebook_application_id" />
```

Include in your strings.xml file:

```xml
<string name="facebook_application_id" translatable="false"><YOUR_FACEBOOK_APP_ID></string>
```

**Example:**

```xml
<string name="facebook_application_id" translatable="false">1234567890123456</string>
```

**Need help?** Contact <support@linkrunner.io>.
