Article

How to Install the Facebook Like Button On Every Page of Your Site

Topic: Internet MarketingBy Donna GunterPublished Recently added

Legacy signals

Legacy popularity: 2,872 legacy views

Reader rating

Not enough ratings yet

Aggregate average appears after enough eligible reader ratings.

Rate this resource

Sign in to rate this resource.

Sign in to rate this resource

Facebook is the most rapidly growing social networking platform, with over 400 million active users (and climbing quickly). With so many users and with people's preoccupation with Facebook, it makes sense to use the "Like" button to help virally spread the word about what you do to others who are interested in you.

Once the button is on your page, any time a Facebook user visits your site and clicks on it, a link to your page is added to their activity stream. Then, all of their friends can see that link, and if interested, click on it and be sent directly to your page. When that second person clicks on the button, the button is personalized for them by showing which of their friends have already clicked it. And then, when your friends click on it, a link to your page gets added to their stream, as well. Easy viral marketing!

Here's how you can install the "Like" button on your site:

1. Visit the Facebook page to create the button, found here: http://developers.facebook.com/docs/reference/plugins/like

2. Copy the URL of the page where you want to install the button to the form in Facebook.

3. Pick your features. This is where you choose your layout style, whether you want to show faces, the width of the button (the default 475 pixels is fine), what you want the button to say (Like or Recommend), the font of the button, and the color scheme.

4. Click "Get the Code." You'll discover you have two options here, an i-frame or JavaScript (HFBML) version. Here are the difference between the two:

Because the content inside the i-frame is hosted by Facebook, Facebook can determine whether the user is logged in or not using a cookie. If the person is logged in to Facebook, the information in the i-frame is personalized for that user, like showing a list of your friends who have also "liked" the page. If you're not logged in, you'll be prompted to log in or join.

The JavaScript version offers some extras. When you use this code, clicking the Like button will also show the profile pictures of your friends who have clicked on the Like button, as well as gives your visitors the chance to add a comment to the link when they click on the Like button. There's also some extra programming involved if you select this option.

I suggest you use the i-frame because it's easier to configure.

5. Highlight and copy the button code provided on the page for you.

6. Return to the page where you want the button to appear. In your HTML editor, you need to paste the code where you want it to appear on your page. As you look at the code, you'll see that it references the page you selected on which your code will appear. You'll also notice that the width of the box is set to 475 pixels (if you chose that width at setup) but there's no height set. You might want to set the height at 75 pixels so that the button doesn't take over your page.

7. Publish and "like" your page. Save the page with the code and publish it to your site. Go to your updated page and "Like" your page. Your page must be accessible to any viewer. If the content is password-protected (like in a membership site), an error message will appear when someone clicks the "Like" button on a page.

Connect the pages of your blog or web site with Facebook via the "Like" button. Share them with your friends and followers and watch the viral marketing happen!

Article author

About the Author

Internet Marketing Automation Coach Donna Gunter helps independent service professionals create prosperous online businesses that make more profit in less time by teaching them how to automate their businesses, leverage their expertise, and get found online. Would you like to learn the specific Internet marketing strategies that get results? Discover how to increase your visibility and get found online by claiming your FREE gift, TurboCharge Your Online Marketing Toolkit, at ==> http://www.TurbochargeYourOnlineMarketing.com.

Further reading

Further Reading

4 total

Article

Businesses in today's digital-first world always look for faster and more efficient means to get to the online audience. Social media are the new-age marketing places where brands can interact with customers according to their interests, habits, and geographic locations. The digital era has thus converted paid social ads into effective means of getting the brand recognized and generating leads. The increasing competition in metropolitan areas makes meta ads services in Delhi

February 6, 2026

Article

The New Reality of Connected Customers A customer begins their day checking messages on a smartphone, continues research on a laptop during lunch, and resolves an issue later through a smart TV app or voice assistant. This fluid movement across devices has become normal. What has changed is customer expectation. People no longer see channels as separate paths; they see one continuous journey. Omnichannel Support 2.0 is the response to this reality, focusing not just on presen

January 9, 2026

Article

Choosing the right call center agency can make or break your customer support strategy. With dozens of providers promising competitive rates and high efficiency, businesses often feel overwhelmed by the choices. Many focus on price alone, but reliability, quality, and alignment with your brand are far more important for long-term success. A reliable agency does more than answer calls—it becomes an extension of your business, shaping customer perception and influencing l

January 6, 2026

Website

Si3 Digital is a leading digital marketing agency in Dubai offering web design, eCommerce, SEO, social media, and paid advertising services. Focused on results and ROI, we help UAE businesses boost visibility, generate leads, and grow online with tailored digital strategies.

October 26, 2025