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

# Facebook Conversion API

> Adding Facebook's Conversion API Integration

By using **ClickFlare**’s Conversion API for **Meta Ads** (**aka Facebook Ads**), you’ll be able to report multiple conversion events from ClickFlare back to Meta Ads through Meta’s conversion reporting API. Just like you would do when using server-to-server postbacks, but even easier.

*Why should I use Conversion API for Meta Ads (Facebook Ads)?*

As a result of the tracking limitations introduced by Apple (with iOS 14 and 14.5), its ATT framework has limited the tracking capability of website tracking pixels. Such restrictions have resulted in an underreporting of conversions and, therefore, a limitation of optimization capabilities on Meta Ads’ algorithm. To address such limitations, Meta Ads has made available a Conversion API endpoint where you can report conversion events.

**What you'll need for the integration:**

* An active Facebook Account
* An active ClickFlare Account
* Facebook Pixel ID and Access Token

### **Where to Find Facebook Conversion API Information**

1. From your FB business account, go to **Business Settings**.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-01.jpg?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=6fb4d33be133276d6741fb6a1ee6d32f" alt="From your FB business account, go to Business Settings" width="1880" height="966" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-01.jpg" />
2. On the left ribbon, go to **Data Sources** and then click on **Pixels**.
3. A list of available Pixels should appear. Select the Pixel you would like to connect.
4. Click on the **Open in Events Manager** button.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-02.jpg?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=c942e248f4c55ddf0c18dc4d30b2fbb5" alt="Click on the Open in Events Manager button" width="1886" height="954" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-02.jpg" />

   <Info>
     Note: If you don’t have any pixels on FB, you’ll need to create one first. For more information on how to create a pixel, click [here](https://www.facebook.com/business/help/314143995668266).
   </Info>
5. Once on the Event Manager Menu, click on the **Settings** tab.
6. In the **Details** section, you should see the **Pixel ID**. Copy it and be ready to use it.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-03.jpg?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=0b58d4c6f2009c0effe79113511d6a3a" alt="In the Details section, you should see the Pixel ID. Copy it and be ready to use it" width="1895" height="953" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-03.jpg" />
7. Scroll down to the **Conversion API** Section and under “**Set up manually,**” click on ***Generate access token***. Copy the Access Token and paste it somewhere you can easily access.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-04.jpg?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=f5dabeb267ee9d5498a642f7f553b24e" alt="Scroll down to the Conversion API Section and under “Set up manually,” click on Generate access token. Copy the Access…" width="1890" height="959" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-04.jpg" />
8. Now that you have all you need to integrate FB to ClickFlare, let’s continue with the integration.

### **Integrating Facebook Conversion API in ClickFlare**

Follow the steps below to add the Facebook Conversion API.

1. Open the ClickFlare left sidebar
2. Go to the **Integrations** tab.
3. In the **Conversion API Integrations** section, click on **Add Integration**.
4. Select **Facebook** from the list of available integrations.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-05.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=3f6665720f84c0243fac6ecbcace29a0" alt="Select Facebook from the list of available integrations" width="1904" height="857" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-05.png" />
5. In the integration screen, click on **Add a new Pixel.**
   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-06.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=6ef2a328664ea11f345c0af5018d1579" alt="In the integration screen, click on Add a new Pixel" width="800" height="703" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-06.png" />
6. Give your pixel a **name** and paste the **Pixel ID** and **Access Token** you copied earlier.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-07.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=7aa0e7c1830a2ea1439b0f272a081418" alt="Give your pixel a name and paste the Pixel ID and Access Token you copied earlier" width="490" height="297" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-07.png" />
7. Define the **Action Source**.
   As per Facebook requirements, you need to define the action source of the events that will be posted to Facebook.
   *For example, select Website if the collected data is coming from a website or a landing page, or select Email if the data has been collected via email, etc.*

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-08.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=b46a369899b03ed31aa46568e096a3b5" alt="For example, select Website if the collected data is coming from a website or a landing page, or select Email if the…" width="798" height="591" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-08.png" />
8. Specify which ClickFlare tracked events are going to be posted on Facebook.

   Using the **Event Type Mapping**, you can map ClickFlare-tracked events to specific Standard Facebook events or custom ones of your choice.
   [Click here](/docs/en/settings/custom-conversions) to learn more about how to create custom events.

   If you expect a conversion event to have a payout on the Facebook side, make sure to **map it to a Facebook event** that actually carries a value, such as **Purchase** or **Subscription**.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-09.jpg?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=367e12601ffe7016af5f5850ef5db33e" alt="If you expect a conversion event to have a payout on the Facebook side, make sure to map it to a Facebook event that…" width="793" height="945" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-09.jpg" />
9. Now that you have mapped the events that will be reported to Facebook, you need to define what information you want to send to Facebook CAPI.

   As you may see in the screenshot below, the configuration comes with a few grayed-out fields. This means that the information is sent to Facebook CAPI by default. However, if you want to add more information to each event you report to Facebook CAPI, you can add it by adding it to the **Event Data Configuration**. See example below.

   <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-10.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=81b618f31001aa01863efae88a7f9c0b" alt="As you may see in the screenshot below, the configuration comes with a few grayed-out fields. This means that the…" width="802" height="771" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-10.png" />

   <Info>
     Note: Some parameters are required from the Traffic Source and can not be changed or deleted.
   </Info>

   Learn how to add additional parameters [here](/docs/en/integrations/additional-parameters).
10. To prevent Facebook from deduplicating the conversion, you’ll need to map the Facebook **manual event ID** parameter to the ClickFlare token \{\{clickid\_txid\_ct}}
    <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-11.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=4f3769f7e2a0849b123455ae05e157c8" alt="To prevent Facebook from deduplicating the conversion, you’ll need to map the Facebook manual event ID parameter to the…" width="787" height="677" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-11.png" />
11. Once done with all the configurations, click on **Save**.
    You’ll see the new integration appear under the Conversion API section.

    <img src="https://mintcdn.com/clickflare/19ntVJbgsh_si2N3/images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-12.png?fit=max&auto=format&n=19ntVJbgsh_si2N3&q=85&s=738219bf48d8bef6f18596aec8df6895" alt="You’ll see the new integration appear under the Conversion API section" width="1633" height="257" data-path="images/help-center/05-integrations/01-conversion-api-integrations/03-facebook-conversion-api-12.png" />
