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

#  

# Facebook Ads Manager

Export lets you extract data from the Lakehouse and load into Facebook Ads Manager.

## Steps to Export

1. Navigate to **Activate** > **Export**. You will see all the different categories of storages that can be used for export.

<img src="https://mintcdn.com/skypoint/GxPM0bRCdkUs_uDj/doc_snippets/FacebookAdsManager_export1.png?fit=max&auto=format&n=GxPM0bRCdkUs_uDj&q=85&s=d7f380f943a53cc244bacd479445d0a1" alt="Alt text" width="1895" height="861" data-path="doc_snippets/FacebookAdsManager_export1.png" />

2. Go to **Destinations** and click on ***Add Export*** if the export connect is not there in the export gallery.
3. Fill up the name and the display name of the export and click on the dropdown column to select one of the type options. Here we select Facebook Ads.

<img src="https://mintcdn.com/skypoint/GxPM0bRCdkUs_uDj/doc_snippets/FacebookAdsManager_export2.PNG?fit=max&auto=format&n=GxPM0bRCdkUs_uDj&q=85&s=389d77af0133802b0b5abcb89c2ab22a" alt="Alt text" width="4338" height="2101" data-path="doc_snippets/FacebookAdsManager_export2.PNG" />

4. As soon as we select it, there will be a choice to either select an existing dataflow or to create a new one.
5. In case you are choosing to create a new one, fill up the **APP Id**, **APP Secret**, **Access Token** and the **AD Account ID** and then click on NEXT.
6. You will be able to see all the Lakehouse data available infront of you entity wise. Choose all the entities that you will need to export.
7. Click on **create** and then click on three dot button and select Run.
8. In case you are choosing to select from existing, fill up the details **Select Account**, **APP ID**, **APP secret**, **Access Token**, **AD Account Id**.
9. Click on Next.
10. You will be able to see all the Lakehouse data available infront of you entity wise. Choose all the entities that you will need to export.
11. Click on **create** and then click on three dot button and select Run.
12. If the export connector- Facebook Ads manager is already present in the export gallery then click on setup.
13. Fill the details- Name, Display name , select from options- Select from existing, Create new
    In case you are choosing to create a new one, fill up the **APP Id**, **APP Secret**, **Access Token** and the **AD Account ID** and then click on NEXT.
14. You will be able to see all the Lakehouse data available infront of you entity wise. Choose all the entities that you will need to export.
15. Click on **create** and then click on three dot button and select Run.
16. Your export will be started.
17. In case you are choosing to select from existing, fill up the details **Select Account**, **APP ID**, **APP secret**, **Access Token**, **AD Account Id**.
18. Click on Next.
    Here all the Lakehouse data will be available Entity wise.

* Select the enities from the list to be exported.
* Click Create and then click on three dot button and select Run.
* Your export will be started.

## Steps to Extract App Credentials for Facebook Export

1. To export, you need to have an app created on developer's website.
2. Navigate to the [Developer's Portal](https://developers.facebook.com/apps/) and click on **Create App**.

<img src="https://mintcdn.com/skypoint/tLGqpc7J49ffHAJB/doc_snippets/fbappstep1.PNG?fit=max&auto=format&n=tLGqpc7J49ffHAJB&q=85&s=0c036fc243a4af42ba400a64c00357bd" alt="Alt text" width="605" height="537" data-path="doc_snippets/fbappstep1.PNG" />

3. Choose which type of app you want to create and click on Continue.
4. Enter the name of the display name of the app, the contact email and add the purpose for creating the app.

<img src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/fbappstep2.jpg?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=be17a7bb33ede8d8709a1f0d64bf481a" alt="Alt text" width="654" height="662" data-path="doc_snippets/fbappstep2.jpg" />

**Note :** Choosing the business manager account is optional but if you have one, selecting it would be preferable.

5. Your app is created and you will be redirected to the Dashboard.

<img src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/fbappstep3.jpg?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=9037a7debf53712e6ac23c94247d4027" alt="Alt text" width="1919" height="896" data-path="doc_snippets/fbappstep3.jpg" />

6. The last thing that you need to do is to Integrate the Facebook Marketing API with your app. Under the section **Add Products to your App**, watch out for **Marketing API** and click on ***Set Up***.

<img src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/fbappstep4.jpg?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=829aa29326f07933af80285c3616b53a" alt="Alt text" width="1920" height="896" data-path="doc_snippets/fbappstep4.jpg" />

7. Then, click on **Tools**, and select the token permissions and click on **Get Token** to extract the access token.

<img src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/fbappstep5.jpg?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=3366b8d4c48a38e1062b92b116947299" alt="Alt text" width="1920" height="660" data-path="doc_snippets/fbappstep5.jpg" />

8. You can get the **App ID** and **App Secret** when you navigate to **Settings** > **Basic**. The AD Account ID is the number written in parenthesis after the Business manager account name and has a prefix **act\_**.

<img src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/fbappstep6.jpg?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=9a9455b31acdafb119cee305e83d2bf8" alt="Alt text" width="1920" height="784" data-path="doc_snippets/fbappstep6.jpg" />
