OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster



How to Create a Facebook Like Box Popup with OptinMonster

How to Create a Facebook Like Box Popup with OptinMonster

Do you want to add Facebook likes to your page via a popup or another campaign on your site? It’s easy with our Canvas Template! In this guide, we’ll show you how to use Facebook’s Page Plugin to create a Facebook Like Box for your site that you can load via our Canvas Technology in a lightbox popup, our slide-in, or on Mobile Canvas.

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)
Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE! Click here to get started →

Generate Facebook Embed Code

We’ve created a step-by-step walkthrough for adding the Facebook “Like” and “Share” features to your popup. Please note these updates to the guide:

Navigate to the Facebook Page Plugin Generator to begin generating the embed code. On the generator page, enter the link to your Facebook Page into the Facebook Page URL field. Make any additional modifications you desire as well.

Enter your Facebook Page's details into the Page Plugin Generator fields.

Copy the Generated Embed Code

Next, select the Get Code button. This will open a new window that provides two blocks of code – the first is the Facebook SDK, and the second is the code that outputs the Page Plugin.

Facebook page embed code copy

Paste Facebook Embed Code

Navigate to the campaign Builder, and here you can use the HTML block to insert into your campaign and paste both blocks of code into the Custom HTML field. Your Facebook Page Plugin will appear in your campaign, like the image below.

NOTE: you may need to save and refresh the optin Builder before Facebook’s scripts will adequately load the Page Plugin for the first time.

custom html block

Customize the Campaign

You can modify the width of your Canvas campaign to contain the content better. Below, the campaign is modified to be 800 wide, but you can set it to 450px ideally. Your exact dimensions are entirely up to you.

facebook likebox campaign width

Congratulations, You have just used OptinMonster to Create a Facebook Page Plugin popup!

Ready to add the campaign to your website? See our doc on how to embed your campaigns on your site.


Q: How do I track conversions when visitors interact with the Facebook Like Box?

A: Since the Facebook Like Box creates an iFrame, tracking conversions isn’t directly possible. However, OptinMonster has created a walkthrough guide to track conversion intent when using iFrames here.

Still stuck?

How can we help?

Last updated on

Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com