How to Add a FB Like Button to a Web Page

By Sara Williams

Facebook "like" buttons make it easy for visitors to help you spread the word about your website. When a visitor clicks on the "like" button, their news feed on Facebook gets updated with a link to the page. This means visitors can share your link in just a click, without knowing how to code an anchor tag or having to start their e-mail application. Adding the "like" button to your Web page is easy, too, using free Facebook tools.

Step 1

Visit this website to get your "like" button code: out the form with the URL of the page where you will place the button plus some style settings and other preferences. When finished, click "Get Code" to generate the button code.

Step 2

Copy the code that appears in the pop-up box. When placing the button on your own page, use the code labeled "iframe." Use XFBML code only to add the button to a page you own on Facebook, like a fan page.

Step 3

Open the HTML file for your Web page in a code editor or a plain-text editor like Notepad. Paste the "like" button code where you want it to appear on the page. For example, if you want to add it below the title on the web page, place it under the

tag or first
tag. Target the