Solutions keyboard_arrow_down keyboard_arrow_up
Our Solutions
Ontraport's solutions work together to give you everything you need to run your business in one centralized, easy-to-use platform.
Resources keyboard_arrow_down keyboard_arrow_up
Find free content on the latest marketing strategies, using Ontraport in your business, and finding the right software.
Visit the blog
University Pricing Chat
Integrating social media
Last updated on: April 13, 2023

Expand your marketing reach and improve your customer experiences by integrating with social media tools that allow you to retarget, gather leads, and more.

Note: Ontraport only offers support for built-in integrations. For assistance with an outside integration, please reach out to the team that built the integration using the contact information provided below.


Facebook Connect Button

The Facebook Connect Button allows your leads and visitors to opt in and get added to your Ontraport account using their Facebook email address.

To create this button, you need to create a Facebook app, connect that app to Ontraport, and then add your button to the pages you want.

Here’s how to create a new app in Facebook:

  1. Set up your free Facebook for Developers account.
  2. Once you’re registered, click here to go to your apps.
  3. Click Create App, select the “Consumer” type and click Next.

Select consumer app type

  1. Name your app, confirm your app contact email address and, optionally, select your business account from the dropdown. Then click Create App.

add app details

  1. Re-enter your password and click Submit.

please re-enter your password

  • Facebook will create your app and take you to your app’s page.
  1. Click SettingsBasic from the sidebar on the left and fill in your app’s basic settings.
    • You can’t turn on your app until these settings are saved. Check out this article provided by Facebook to learn more about these basic app settings.

Facebook app basic settings

  1. Toggle your App Mode from “Development” to “Live.”
  2. Copy your App’s name and App ID and save them for later.

important app info

That’s it for steps on Facebook. Now you just need to add your app info to your Ontraport account. Here’s how:

  1. Log in to your Ontraport account.
  2. Go to your accountAdministrationSocialFacebook.
  3. Click New Facebook App.
  4. Add your app’s name and ID you copied from Facebook.
  5. In the “Redirect” field, add the URL of the page you’d like new contacts to see after they opt in.

Create new Facebook app

  1. Click Save.

Once you click save, you’ll be brought to your Facebook App Collection, and all that’s left is to generate your code and add it to a page. Here’s how to do it:

  1. Select your app, then click Generate Code.
  2. Copy your code.

copy code example

  1. Go to the page you’d like to add your Facebook Connect Button to, and paste your code where you want the button to appear.
    • If you are adding your button to an Ontraport Page, add a Custom Code element and paste your code there.

custom HTML editor

Pro Tip: Facebook may display an error code when you click the button. If it does, edit this line in the code:


To read simply:


For assistance integrating the Facebook Connect Button with Ontraport, visit their support page.

Facebook Custom Audiences

Connect your accounts

  1. Create a Business Manager account if you haven’t already.
  2. Log in to Ontraport and go to your accountAdministrationAdvanced Features and toggle on Facebook Custom Audiences.
  3. Once Facebook Custom Audiences are enabled, click your accountAdministrationSocialFacebook API.
  4. Click Continue with Facebook and follow the prompts to connect your Facebook account with Ontraport.s
  5. Click Save.

Create a custom audience

  1. In Ontraport, when you select a Facebook action or automation element, click Add New Audience.
  2. Name your audience and add a description.
  3. Click Save.

When you update that audience, Ontraport sends your data to Facebook to make sure your data’s all synced up.

Note, Facebook doesn’t allow users to “cross-update” audiences. That means, for this integration to work, you’ll need to create your audience inside of Ontraport. If you create custom audiences using other methods, such as website custom audiences or customer list custom audiences, they won’t appear in Ontraport.

For assistance integrating Facebook Custom Audience with Ontraport, visit Facebook’s support page.

  • Setting up the Ontraport Facebook integration does not give Facebook access to your Ontraport account. There is no data transferred to Facebook without your authorization using an automation map or group action.

Disconnect your Facebook integration

  1. Log in to your Facebook account.
  2. Go to the Business Integrations menu and search for “Ontraport” in the Applications tab.
  3. Check the box for the Ontraport App and click Remove.

Facebook Lead Ads

  1. Go to the Facebook business help page and use the search bar to look up Ontraport.
  2. Follow the steps provided by Facebook to complete the integration with Ontraport.

For assistance integrating Facebook Lead Ads with Ontraport, visit their support page.

Viral Sweep

  1. Follow these steps to obtain an Ontraport API key and app ID.
  2. Follow these steps provided by Viral Sweep to integrate with Ontraport.

For assistance integrating Viral Sweep with Ontraport, contact their support team using this contact form.

Twitter Cards With Ontraport Pages

  1. Create a new page or edit an existing page.
  2. Click SettingsSEO & Social Setting.
  3. Add your page’s:
    • Title – a public name for your page
    • Description – a text snippet that summarizes your content
    • Social image – a unique image that represents your content
  4. Click Done and save and publish your page.
  5. Visit the Twitter Card Inspector to update your changes to Twitter.

Note, you can also access a link to the Twitter Card Inspector from your page’s SEO & Social Settings.

For assistance integrating Twitter Cards with Ontraport, visit their support page.

Twitter Lead Generation Cards

  1. In Ontraport, go to Contacts → Settings→ Field Editor and create two new custom fields: “Full Name” and “Twitter Screen Name” (Twitter is unable to populate the standard “Name” field in Ontraport).
  2. Click Save.
  3. Create a Smart Form by navigating to Contacts → Forms→ New Form → Create New.
  4. Remove the “first name” and “last name” fields. Click Add Field, and add the “twitter screen name” and “full name” fields to the form.
  5. Name the form, click Save and Publish.
  6. On the “Publish Form” screen, click Host My Form. Copy the URL and paste it into a new web browser window to display the hosted form.
    • Right click on the web page with the form displayed and select View Source. The page HTML code will display. Within this code, there are several items you’ll need to copy to a text file for later use in Twitter:

  • The forms processor URL:
  • The “Twitter Screen Name”field ID. In our example, it’s f1462 (It will have different numbers after the “f” on your system).
  • The “Full Name field ID. In our example, it’s f1463.
  • The form’s “uid.” In our example, it’s p2e83585f10. On your form’s code, it will include the prefix “p2c,” but the rest of the numbers will be different.
  1. In your Twitter Ads account, click Creatives → CardsLead Generation to reveal the cards you created.
  2. Click the pencil icon to configure the first card.
  3. Scroll down and select Data Settings to expand it and set the following values:
    • Submit URL: use the form’s processor URL you copied from the source code above.
    • HTTP Method: Select Post.
    • “Custom Key Name field:
      • On the line with “Name,” paste the code for “Full Name” you copied above. 
      • On the line with “email,” type email.”
      • On the line with the “screen name” label, paste the code for “Twitter Screen Name” you copied above.
    • If there isn’t a space to add an entry under the “Custom Hidden Data Values” title, click Add Another Hidden Field. Then, on the left side, type in “uid.”
  1. On the right side, copy and paste the form’s uid copied above. This will start with “p2c”.
  2. Click Update Card.
  3. Repeat steps to configure the rest of your Twitter Lead Generation Cards. Each card must be configured with the Submit URL, HTTP method and with the field information as shown above.

For assistance integrating Twitter Lead Generation Cards with Ontraport, visit their support page.


  1. Follow these steps to obtain an Ontraport API key and app ID.
  2. Log in to your Heyo account and click Content > Signup Form > Ontraport > Connect to Ontraport.
  3. Add in the “Ontraport Nickname” and “API key.” We recommend using a descriptive nickname so you can quickly assign these credentials in future Heyo automation.
  4. Once Heyo verifies the API Key and App ID, click Publish.

For assistance integrating Heyo with Ontraport, visit their support page or email them at


  1. Follow these steps to obtain an Ontraport API key and app ID.
  2. Log in to your LeadSync account and click Connect a Service.
  3. Click on Connection drop-down arrow and select Ontraport. Copy/paste your saved Ontraport App ID and API Key in the corresponding boxes. Click Update connection.
  4. Both the List and Tags option will appear at the bottom. Select the list and tags that you set up in Ontraport and click Update connection again.
  5. Once you are back in main LeadSync view, click on Add Facebook Lead Form.
  6. Select your FB business page (Admin access) and the correct Lead Form (important). For connection, select Ontraport and click on Update Notification.

For assistance integrating LeadSync with Ontraport, visit their support page.keyboard_arrow_downkeyboard_arrow_up

Discover Other Ontraport Integrations

Integrations Overview >

Know of any social media tools that integrate with Ontraport that aren’t listed here? Please email to let us know.

Related university lessons
Contact tracking in Ontraport
Learn all the ways Ontraport tracks your site visitors, from first click to final purchase.
Add the Ontraport tracking script to your site
Figure out who’s visiting your site and where they’re coming from by adding Ontraport’s tracking script to your web pages.
Facebook Custom Audiences
Learn about Ontraport’s Facebook Custom Audiences so you can use all the data in your Ontraport account to create hyper-targeted ad campaigns on Facebook.
Divider Text
Related support articles
Integrating webinars
Integrating appointments and calendars
Integrator tools
 Pro tips
Tip #1: To see a full view of your Twitter Cards, click on the date or time of the post in Twitter.
Live events
© Ontraport 2024
PCI DSS, Level 1
Privacy Shield Certified