Skip to main content

Frequently Asked Questions About Facebook CAPI and Salesforce

What is CAPI and how does it work with Salesforce and Facebook Ads?

CAPI stands for Conversions API, which is a Facebook Marketing API that allows businesses to send offline conversions data to Facebook Ads. This can include information about purchases, lead submissions, and other valuable actions taken by customers.

When it comes to integrating Salesforce with Facebook Ads via CAPI, businesses can use ConversionStream to send information about leads and sales from Salesforce to Facebook Ads. This helps businesses better understand the performance of their ads and optimize their campaigns based on real-time data.

To set up this integration, businesses need to create a Facebook Business Manager account and install the Facebook Pixel on their website. They also need to configure Salesforce via ConversionStream to send data to Facebook via CAPI. Once the integration is set up, businesses can track the performance of their Facebook Ads campaigns and make data-driven decisions to improve their marketing efforts.

What are the benefits of using CAPI to send Salesforce conversions to Facebook Ads?

There are several benefits to using CAPI to send Salesforce conversions to Facebook Ads:

More accurate tracking: By sending conversion data from Salesforce to Facebook Ads via CAPI, businesses can get a more accurate picture of the performance of their ads. They can see which ads are driving actual sales and which ones are not, allowing them to optimize their campaigns accordingly.

Improved ad targeting: With access to more detailed conversion data, businesses can better target their Facebook Ads to specific audiences based on past purchase behavior. This can lead to higher conversion rates and a better return on investment (ROI).

Increased efficiency: By automating the process of sending conversions data from Salesforce to Facebook Ads, businesses can save time and resources that would otherwise be spent manually uploading this data.

Better customer insights: By tracking Salesforce conversions data, businesses can gain valuable insights into customer behavior and preferences. This can inform future marketing campaigns and help businesses better understand their target audience.

Overall, using CAPI to send Salesforce conversions to Facebook Ads can help businesses improve the effectiveness of their marketing campaigns and make data-driven decisions to grow their business.

What are the prerequisites for setting up CAPI for Salesforce and Facebook Ads integration?

Before setting up CAPI for Salesforce and Facebook Ads integration, there are a few prerequisites that businesses need to meet:

  1. Facebook Business Manager account: The business must have a Facebook Business Manager account set up in order to use CAPI. This is where the business will create and manage its Facebook Ads campaigns.

  2. Facebook Pixel installed on the website: The business must have the Facebook Pixel installed on its website. This will allow Facebook to track conversions and other events that happen on the website.

  3. Access to Salesforce data: The business must have access to the relevant Salesforce data that it wants to send to Facebook Ads via CAPI. This may require setting up the appropriate permissions within Salesforce so that they can connect Salesforce in the ConversionStream dashboard.

  4. With ConversionStream you do not need knowledge of API and programming languages, require engineering support to set up the integration. Simply, create a ConversionStream account, connect Salesforce, connect Facebook Ads and start sending Salesforce conversions from Salesforce to Facebook Ads via Facebook’s Conversion API.

Meeting these prerequisites is essential for setting up CAPI for Salesforce and Facebook Ads integration successfully.

How do I set up CAPI to send Salesforce conversions to Facebook Ads?

Setting up CAPI to send Salesforce conversions to Facebook Ads involves several steps:

  1. Create a Facebook app and Business Manager account: Create a Facebook app and Business Manager account if you haven't already. Then, navigate to the Business Manager settings and add the relevant Facebook page, ad account, and pixel that you want to use for your campaigns.

  2. Install the Facebook Pixel: Install the Facebook Pixel on your website if you haven't already. This will allow Facebook to track conversions and other events that happen on your website.

  3. Set up the Facebook Conversions API with ConversionStream: head over to ConversionStream and follow this guide to get started.

  4. Configure your Salesforce conversion streams to send data to Facebook Ads via the Conversions API with ConversionStream. This involves defining a set of filtering rules on the lead, contact, or opportunity object to define your conversion event. Then sending it to your desired Facebook Pixel.

  5. Test the integration: Once the integration is set up and your conversion stream is live, test it to ensure that conversions data is being sent from Salesforce to Facebook Ads accurately. You can locate CAPI conversions in the Facebook Ads Manager > Events Manager > Data Sources


If you are NOT using ConversionStream it's important to note that setting up CAPI integration can be complex, and it may require the help of a developer or working closely with your IT department. Facebook provides detailed documentation and support to help guide businesses through the integration process.

How can I track the performance of my Facebook Ads campaigns using CAPI and Salesforce data?

To track the performance of your Facebook Ads campaigns using CAPI and Salesforce data, you can follow these steps:

Set up CAPI integration: First, set up the integration between Salesforce and Facebook Ads using CAPI with ConversionStream.

Map Salesforce data to Facebook Ads: Once ConversionStream is configured, map your Salesforce lead identifier fields for conversion matchbacks. This involves matching Salesforce fields to Facebook Ads fields to ensure that the data is being sent and received correctly.

Create custom conversions: In Facebook Ads Manager, create custom conversions based on the Salesforce data that you want to track. For example, if you want to track high-value leads, create a custom conversion from the Salesforce data sent to Facebook Ads via ConversionStream.

Monitor performance: Monitor the performance of your Facebook Ads campaigns in Ads Manager. You should be able to see data on how many conversions are being generated from your ads, as well as other metrics such as click-through rates and cost per conversion.

Optimize campaigns: Use the data from your Salesforce conversions to optimize your Facebook Ads campaigns. For example, if you see that certain ads are generating more conversions than others, adjust your budget and targeting accordingly.

By tracking the performance of your Facebook Ads campaigns using CAPI and Salesforce data, you can get a more accurate picture of how your ads are performing and make data-driven decisions to optimize your campaigns.

What are the best practices for optimizing my Facebook Ads campaigns using CAPI and Salesforce data?

Here are some best practices for optimizing your Facebook Ads campaigns using CAPI and Salesforce data:

  1. Use your Salesforce data to create custom audiences: One of the biggest benefits of using CAPI to integrate your Salesforce data with Facebook Ads is the ability to create highly targeted custom audiences. Use your Salesforce data to create custom audiences based on past purchase behavior or other relevant data points.

  2. Use lookalike audiences: Lookalike audiences are another powerful tool that can help you reach new customers who are likely to be interested in your business. Use your Salesforce data to create lookalike audiences based on your existing customers or leads.

  3. Use data to inform your bidding strategy: Use your Salesforce data to inform your bidding strategy. For example, if you see that certain products or services have a higher ROI, consider bidding more aggressively on ads that feature those products or services.

  4. Continuously test and iterate: Continuously test and iterate your Facebook Ads campaigns based on the data you receive from Salesforce. Experiment with different ad formats, messaging, and targeting to find what works best for your business.

By following these best practices, you can optimize your Facebook Ads campaigns using CAPI and Salesforce data to achieve better results and a higher ROI.

Can I use CAPI to send other types of data from Salesforce to Facebook Ads, besides conversions?

Yes, you can use CAPI to send other types of data from Salesforce to Facebook Ads besides conversions. Here are a few examples:

Lead information: You can use CAPI to send information about leads generated in Salesforce to Facebook Ads. This can help you better target your advertising campaigns and improve your lead generation efforts.

Opportunity information: You can use CAPI to send information about opportunities created in Salesforce to Facebook Ads. This can help you track the performance of your advertising campaigns and optimize your sales funnel.

Customer information: You can use CAPI to send information about customers in Salesforce to Facebook Ads. This can help you create more targeted advertising campaigns and improve your customer retention efforts.

Product information: You can use CAPI to send information about products in Salesforce to Facebook Ads. This can help you better target your advertising campaigns and optimize your product marketing efforts.

In general, you can use CAPI to send any data from Salesforce to Facebook Ads that can help you better understand your customers, track your sales funnel, and optimize your advertising campaigns. However, it's important to ensure that you're complying with relevant privacy laws and regulations when sharing this data between platforms.