Facebook Audiences Connector Setup Guide
This article describes how to set up the Facebook Audiences connector in your Customer Data Hub account.
API Information
This connector uses the following vendor API:
- API Name: Facebook Graph API - Marketing API
- API Version: v18.0
- API Endpoint:
https://graph.facebook.com
- Documentation: FaceBook Marketing API
Batch Limits
This connector uses batched requests to support high-volume data transfers to the vendor. For more information, see Batched Actions. Requests are queued until one of the following thresholds is met or the profile is published:
- Max number of requests: 10000
- Max time since oldest request: 10 minutes
- Max size of requests: 1 MB
Connector Actions
Action Name | AudienceStream | EventStream |
---|---|---|
Add User to Custom Audience | ✓ | ✗ |
Remove User from Custom Audience | ✓ | ✗ |
Opt Out User from All Custom Audiences | ✓ | ✗ |
Configure Settings
Go to the Connector Marketplace and add a new connector. Read the Connector Overview article for general instructions on how to add a connector.
After adding the connector, configure the following settings:
- Ad Account ID
- Required
- Facebook Audiences Account ID you want to manage. (Learn more.)
- Before you can use this connector and build a custom audience in Facebook, you must agree to the Facebook Custom Audience Terms.
- This connection will generally expire within 60 days, causing unpredictable results for all Facebook Ad actions.
- Reestablish the connection at any point by clicking Establish Connection/Connected.
Before clicking the Establish Connection button, ensure that you are signed into Facebook with the account that is linked with the Ad Account ID that is being used. If this is not the case issues, can arise with the token that is generated.
Settings specific to the Facebook Audiences Connector
-
Facebook App ID (Required)
The ID of the Facebook App you want to connect to.- Request Ads Management Standard Access to get more resources such as a better rate limit.
For more information, see: Facebook Marketing API: Access and Authentication. - Make sure to request ads_management permission for for Ads Management.
For more information, see: Facebook Login: Permissions Reference.
- Request Ads Management Standard Access to get more resources such as a better rate limit.
-
Facebook App Secret (Required)
- App Secret for the Facebook App you want to connect to, which can be found in Facebook app > Settings > Basic.
Action Settings - Parameters and Options
Click Next or go to the Actions tab. This is where you configure connector actions.
This section describes how to set up parameters and options for each action.
Action - Add User to Custom Audience
Parameters
Parameter | Description |
---|---|
Custom Audience to Add User To |
|
Email Address |
|
Phone Number |
|
Facebook User ID |
|
Facebook App ID |
|
Mobile Advertiser ID |
|
External ID |
|
Zip Code |
|
City |
|
Country |
|
US State |
|
First Name |
|
Last Name |
|
First Initial |
|
Year of Birth |
|
Day of Birth |
|
Month of Birth |
|
Gender |
|
Lookalike Value |
|
Check Box |
|
Action - Remove User from Custom Audience
Parameters
Parameter | Description |
---|---|
Custom Audience to Remove User From |
|
Email Address |
|
Phone Number |
|
Facebook User ID |
|
Facebook App ID |
|
Mobile Advertiser ID |
|
External ID |
|
Zip Code |
|
City |
|
Country |
|
US State |
|
First Name |
|
Last Name |
|
First Initial |
|
Year of Birth |
|
Day of Birth |
|
Month of Birth |
|
Gender |
|
Lookalike Value |
|
Check Box |
|
Action - Opt Out User from All Custom Audiences
Parameters
Parameter | Description |
---|---|
Email Address |
|
Phone Number |
|
Facebook User ID |
|
Facebook App Id |
|
Mobile Advertiser ID |
|
External ID |
|
Zip Code |
|
City |
|
Country |
|
US State |
|
First Name |
|
Last Name |
|
First Initial |
|
Year of birth |
|
Day of birth |
|
Month of Birth |
|
Gender |
|
Lookalike Value |
|
Check Box |
|
Using the Facebook Audiences Connector
Create a Visitor ID Attribute
The Facebook Audiences connector requires at least one Visitor ID attribute with the ability to be passed through to Facebook Audiences.
Use the following resources to set up a Visitor ID attribute:
Define an Audience
Your account may have several Visitor ID attributes defined. In this case, it is important to create a visitor-scoped attribute of the Boolean data type and named Known Visitor
to check for the existence of any of the Visitor IDs. Using this attribute ensures that the audience only contains visitors with an assigned Visitor ID that can be passed to Facebook. You cannot target an unknown visitor.
This connector also has required ID parameters, such as email, phone, app, or user IDs. At least one of these IDs is required. Including these IDs in your audience filter helps avoid connector errors.
Use the following example to create an audience filter of visitors that have a “Known Visitor” Boolean data type set to true
. You can add the badge and Boolean attributes in advance or add them when creating the filter.
Connect Tealium to Your Facebook Audiences Account
You will need the account ID to configure the connector with your Facebook Audiences account.
Use the following steps to get your Facebook Audiences account ID:
-
Log in to your Facebook Audiences account.
-
Click an ad account, campaign, ad set, or ad in Ads Manager.
-
Copy the
account_id
parameter value from the URL in your browser then return to the connector in AudienceStream.
-
In the Configure window, add your title and any relevant notes and your Ad Account ID (copied from above).
-
Click Establish Connection to verify the connection.
Create Custom Audience
Now that you are connected to your Facebook Audiences account, it’s time to create a Custom Audience. You will need to create your first Custom Audience on the Facebook site to accept the terms and conditions before you are able to create a Custom Audience via the connector.
Use the following steps to create a custom audience:
- In the connector configuration, click the Create tab.
- Enter the desired Custom Audience name and a short description.
- Click Create.
Thecustomer_file_source
parameter supports the following values:
USER_PROVIDED_ONLY
PARTNER_PROVIDED_ONLY
BOTH_USER_AND_PARTNER_PROVIDED
On the Facebook Audiences site, you have the option to create audiences based on a customer list, website traffic, or app activity. For this example, create your audience based on a customer list.
In order to use your custom audience, it must contain a minimum of 20 entries. If your audience has been created successfully, a small check icon displays beside the button.
Specify Connector Actions
You must now specify the actions you want the connector to take.
Use the following steps to specify actions for the connector:
- Click the Actions tab.
- Select Add User to Custom Audience.
- Click + Create Action.
Configure Connector Actions
Use the following steps to configure actions for the connector:
- From the Audience menu, select the Shoe-Fans audience you created earlier.
The Custom Audience to Add User To menu displays audiences that exist in your Facebook Audiences account. - From the Custom Audience to Add User To drop-down list, select the audience you want to add visitors to.
- In the Target User Identifier drop-down list, map the visitor email attribute to the matching visitor identifier in your Facebook Audiences account.
- Leave the WHEN set to Joined Audience.
- Click Save.
Testing
The most effective testing method is to run a Trace to ensure that your events are handled properly and to check your Facebook dashboard to verify that your Custom Audience was created and populated.
FAQ
Why can’t I see my audiences in the AudienceStream drop-down list?
If you have more than 2,000 audiences in Facebook, they are not all selectable in the drop-down list from an AudienceStream connector.
Use the following steps in Facebook to view all audiences and select the identifier for a specific audience:
-
Log in to Facebook as the user that has access to the Facebook Audiences account.
-
Find the audience you are looking for and copy the Audience ID.
If the Audience ID does not display, you can modify your table column view to include it.
-
Return to AudienceStream and enter the Audience ID as custom value for your AudienceStream connector.
This page was last updated: March 28, 2022