# Facebook Conversion API

{% hint style="danger" %}
In order to **PUBLISH** workflows, you will need to establish a workflow trigger and a workflow action. Without both, you will only be able to save the workflow, not publish it.
{% endhint %}

### Facebook Conversion API

The Conversions API allows advertisers to send web events from their servers directly to Facebook by overcoming the third-party block that has been put in place on the IOS side as well as in Chrome and Adblocker too.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FBd189jFwtJGElhW486hT%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-9bfa81d7ca8a2a12538f32aa3f86605949ccc25c_WA%20-%20facebook%20conversion%20API%20-%20Edit%20Action.webp?alt=media&#x26;token=11b59c0f-730a-40a7-94da-fa0460de138b" alt=""><figcaption></figcaption></figure>

**Access Token**

To add an Access token, Go to 'Facebook business manager' in your 'Facebook account' settings, then select "Generate Access Token" in the Conversion API section. Copy and paste it into the 'Access token' field in the workflow.

If your business page is new, to be able to access your token you have to set up your "Social issue, electoral or political ads" settings, you will be required to confirm your Identity.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FkPVr4huA4uLmeB3xPOIx%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-d97fd4edd449e1175dbb1a9e459c1f96c79e7ed3_WA%20-%20facebook%20conversion%20API%20-%20Access%20token.webp?alt=media&#x26;token=71384574-f55d-47cd-9e32-c5cd81d0b561" alt=""><figcaption></figcaption></figure>

**Pixel ID**

In the Facebook business manager's settings, copy the Pixel ID under the detail section and paste it into the Pixel ID field in the workflow

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FSGk6fycJGBbGS4u7eYWU%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-ba77fa1c72452738af29b0fbd5f0d1d8ce8abc75_WA%20-%20facebook%20conversion%20API%20-%20Pixel%20ID.webp?alt=media&#x26;token=5b160980-d6a0-4d90-a881-1d35c4364715" alt=""><figcaption></figcaption></figure>

**Facebook Event Name**

Select one of the event names here.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FpAp64vw23DuFl5Xqrsow%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-5985653d79bda34aa90f705999de4a1c84de32d7_WA%20-%20facebook%20conversion%20API%20-%20purchase%20(1)%20(1).webp?alt=media&#x26;token=442a233a-bf77-420a-a898-6d3f4709f6a2" alt=""><figcaption></figcaption></figure>

**Value**

Insert the value of the Event Name you select above in this field.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FxHKjDMfGRydsvvtlpdwO%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-239962814d2dbcd8e00b9a0fc507c5e6af5debb6_WA%20-%20facebook%20conversion%20API%20-%20Value%20(1).webp?alt=media&#x26;token=1dc4fd82-673f-422a-8c78-f8873a20cca9" alt=""><figcaption></figcaption></figure>

**Currency**

Add the value currency in this field.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2FSlPDF9xlxTxe3FGu39In%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-1c43ae6c17c5a1ea8d0239349c85cdd1468369a7_WA%20-%20facebook%20conversion%20API%20-%20currency.webp?alt=media&#x26;token=30438c06-580b-47b4-8fdb-8e2d2068b63f" alt=""><figcaption></figcaption></figure>

**Test Code**

Go to Facebook business manager and click on the data sources, then go to the pixel you already created and copy the test code in the test event

The test code is only for testing that the workflow is working correctly. Once you are satisfied with the test, delete the code from the field then save the workflow again.

<figure><img src="https://3379043218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRoDQv6gyGL2CyFV4Oob%2Fuploads%2Fyg0yBzSlraiVshDftT99%2Fspaces_SpDxRsrRdNpxcuWtIMiA_uploads_git-blob-4289e7d7ee88b47576d7fa03012c13fae803e951_WA%20-%20facebook%20conversion%20API%20-%20Test%20code.webp?alt=media&#x26;token=6cd98ed8-c8dc-4095-b4cc-c85fd6021a1f" alt=""><figcaption></figcaption></figure>
