How to Integrate Facebook Lead Ads and Hubspot with Zapier

If you use Hubspot as your CRM, you need a way for Hubspot to automatically create new leads in your CRM whenever Facebook captures lead contact info. Luckily, we can use Zapier to implement this automation.

How to Integrate Facebook Lead Ads and Hubspot with Zapier

Facebook ads can be a great way to get your offer in front of customers ready to purchase. When you optimize your campaign for leads, Facebook allows you to capture contact information using a lead form.

If you use Hubspot as your CRM, you need a way for Hubspot to automatically create new leads in your CRM whenever Facebook captures lead contact info. Luckily, we can use Zapier to implement this automation.

Setting Up The Facebook Lead Form

In the Meta Business Suite, navigate to the 'All Tools' menu and select 'Instant Forms.' If you already have a form created, you can skip this section and jump ahead to 'Setting Up The Zap.'

To create a new form for your campaign, click on 'Create Form.'

Give your form a name, headline, and description. For this example, we call our form 'Test Form 123'. Facebook allows you to optimize your leads for higher volume vs higher intent. You can make this selection via the 'Form Type.' Regardless of your selection, it won't have an effect on the integration.

Go ahead and start adding questions to your form. You can add questions like email, full name, phone number, etc. You want to add questions that match the Hubspot contact properties you're looking to populate. The field names don't need to match perfectly, but it does make it easier when mapping data in the Zapier editor.

Next, Meta requires you to add a link to your privacy policy and link text. Finally, you can add a thank you headline whenever a user completes your form and a call to action button. This button can prompt the user to view your website, call you, or download content. Depending on the option you select, you can add your business phone number, a link to your website, or the content download page.

Setting Up The Zap

In Zapier, create a new zap and add the Facebook Lead Ads app. Make 'New Lead' the trigger event. With this event, the zap will trigger whenever a new lead is created.

Next, add your page and select your form. If you just created your form, you should see it in the form input field.

Proceed to test the trigger and Facebook should send over a test lead in the response. The response should include the form fields you added with test data. As you can see above, the response contains the email, full name, and phone number question fields we included in our lead form.  

Next, add a Hubspot action step. Go ahead and select 'Create Contact' for the event. This will automatically create a new contact in Hubspot. You can then start mapping the output data from the Facebook Lead Ads trigger to the Hubspot contact fields.

As you can see above, we mapped the following fields:

  • Full Name (FB Output Data) --> Customer Name (Hubspot Contact Info)
  • Email (FB Output Data) --> Email (Hubspot Contact Info)
  • Phone Number (FB Output Data) --> Phone Number (Hubspot Contact Info)

Once you finish mapping the Hubspot properties you need to populate, proceed to test this step.

As you can see above, a new contact was created in Hubspot. The properties of the new contact have been successfully populated with data from the Facebook Lead Ads form questions.

Pro Tip: In Hubspot, add a property to track the marketing source and another property to track the campaign #. Then, in Zapier, add these properties to the 'Create New Contact in Hubspot' step using 'Additional Properties to Retrieve.' You can hard code unique values that help you track this data in Hubspot. For example, the Marketing Source property can be set to 'Facebook' and the Campaign # can be set to a specific number. This way you can group contacts using these parameters and run future reports.

When you publish this Zap and run a Facebook Lead Ads campaign using the form you created, new contacts will automatically be created in Hubspot.

Instagram Lead Ads + Hubspot

The process to implement the same automation with Instagram Lead Ads is very similar. The only difference is how the trigger is set up. The process to create the form is exactly the same. Instead of Facebook Lead Ads, add 'Instagram Lead Ads' as the trigger and select 'New Lead' as the event. The zap will trigger whenever a new lead is created from the Instagram Lead Ads form. From there, you can proceed to test and map the output data from the Instagram Lead Ads trigger to their respective properties in the 'Create New Contact in Hubspot' action step.

This is a powerful automation that can streamline the entire process of creating a lead in Hubspot when running a Facebook or Instagram Lead Ads campaign. It will save you and your staff an enormous amount of time. And ensure that valuable contact data does not fall through the cracks at any point in the process.

Please let me know if you have any questions about this tutorial. If you found this helpful, please consider subscribing to my newsletter.  


What are you trying to automate and why? I'd love to know!

Do you have an idea for a tutorial?  Share it in the comments!

Need help with an automation? Hit me up - hello@joshnocode.com

I write weekly about business process automation hacks. If that's something you're into, join me, and let's automate together.