1. Home
  2. Knowledge Base
  3. Integrations
  4. How to Connect WordPress to Facebook Custom Audience

How to Connect WordPress to Facebook Custom Audience

Do you want to connect your WordPress website to Facebook Custom Audience?

With MailOptin, you can effortlessly integrate your site, capturing leads and subscribers directly into your Facebook Ad account for precise retargeting. This integration not only simplifies your marketing efforts but also empowers you to engage your audience more effectively.

Why This Integration Matters

Before setting up, it’s essential to understand the advantages of connecting WordPress to Facebook Custom Audiences.

Retarget Your Most Valuable Prospects: When visitors interact with your WordPress site—signing up for newsletters, downloading resources, or filling out contact forms—they’re demonstrating genuine interest in your offerings. This integration automatically captures these high-intent prospects and adds them to your Facebook Custom Audiences, allowing you to:

  • Display ads specifically to people who have already engaged with your content
  • Re-engage visitors who abandoned their journey before converting
  • Stay top-of-mind with timely reminders about your products or services

Lower Your Acquisition Costs: Facebook advertising can become expensive when targeting cold audiences. By focusing your ad spend on warm leads who are already familiar with your brand, you’ll experience:

  • Up to 70% lower cost-per-click compared to cold audience targeting
  • Improved conversion rates, often 3-10 times higher than standard campaigns
  • Faster time-to-conversion, as these leads require less education about your brand

What You’ll Need

Step 1: Registering your Facebook Application

i. Ensure you are logged in to your Facebook account and visit the Facebook for Developers portal at https://developers.facebook.com/apps/.

ii. Click on “Add a New App” and enter a name and contact email for the app.

Add a new Facebook App

iii. Submit the form to be redirected to a page where you are required to add a product. If you aren’t redirected, click the plus icon beside the PRODUCTS sidebar menu. Then click the “Set Up” button under the “Marketing API” product.

iv. Go to Settings in Marketing API and select a business manager.

Step 2: Generating Access Token

Click on the “Tools” menu, select ads_management, and click the “Get Token” button.

Step 3: Getting your App ID and Secret

Go to Settings >> Basic to get your application’s ID and secret. You will need to click the “Show” button to see the secret.

Step 4: Getting your Ad Account ID

Go to the Business Manager account via https://business.facebook.com. You should see your Ad account ID as shown in the screenshot below.

Step 5: Connecting WordPress to the Facebook Application

i. Log in to your WordPress admin panel and navigate to MailOptin > Integrations

ii. Scroll to the Facebook Custom Audience integration section to enter your Facebook application’s App ID, App Secret, Access Token, and Ad Account ID you obtained earlier.

iii. Click “Save Changes” to store your configuration

 

Step 6: Create Custom Audiences on Facebook

To create a new and empty custom audience at any time, click the “Create new Facebook Custom Audience” button, which will reveal a modal form for you to fill out and submit.

Conclusion

By following this guide, you’ve successfully connected your WordPress website to Facebook Custom Audiences using MailOptin. This powerful integration automatically adds your site leads and subscribers to your Facebook Ad account, enabling highly targeted retargeting campaigns that can significantly improve your advertising ROI.

Start creating targeted campaigns today that speak directly to people who have already shown interest in your offerings, and watch your conversion rates improve dramatically.