How to Embed a Facebook "Like" Button

The social networking website Facebook has become increasingly prevalent in popular culture. Virtually anything, from the mainstream to the obscure, has a Facebook page or Facebook group dedicated to it. By adding a Facebook "Like" button to your website, you can increase the amount of exposure the site gets through Facebook itself. Embedding a "Like" button requires an understanding of HTML, but the amount of time required can be reduced by using the code generating tools available on Facebook's Developers website.

Things You'll Need

  • HTML Editor
  • Website with administrator privileges
  • Facebook account
Show More

Instructions

  1. Like Button Code

    • 1

      Go to the website you wish to add a "Like" button to and copy the URL address.

    • 2

      Go to the developers.facebook.com and type "Like Button" in the search box. Click "Social Plugins - Like Button" from the pop-up results.

    • 3

      Paste the URL into the "URL to Like" text field.

    • 4

      Set the other configuration options presented in the tool. These include the layout, width of the "Like" button, and other display options. Be advised that "Show Faces" and "Width" only apply if you have layout style set to "Standard" and that "Send Button" should be unchecked.

    • 5

      Click on "Get Code."

    • 6

      Copy the "iframe" code provided.

    • 7

      Open the page you wish to add the button to in your HTML editor.

    • 8

      Paste the code into the desired location within the HTML code for the Web page.

    • 9

      Save the changes.

    Open Graph Tags

    • 10

      Go to the Facebook Developers "Like Button" reference page.

    • 11

      Scroll down to "Step 2 - Get Open Graph Tags" on the page and find the tag generator.

    • 12

      Enter the title of the Web page or article in the "Title" box. Click an appropriate category for the Web page from the "Type" drop-down menu. Insert the URL address of the Web page or article into the "URL" field. Provide a URL address to an appropriate image that represents the Web page or article in the "Image" field. Type the name of the website hosting the specific page or article in the "Site Name" box.

    • 13

      Enter the Facebook ID of any administrators for the page in the "Admin" box, or at least include your own Facebook ID. Navigate to your Facebook profile and copy the nine digit number from the URL address, appearing after "http://www.facebook.com/profile.php?id=" to get your Facebook ID if you don't already have it.

    • 14

      Click "Get Tags" and copy the provided code. Paste it into the Web page's HTML code, inside the "<HEAD>" tag and save the changes.

Tips & Warnings

  • Adding Open Graph tags can help give any posts related to clicking the "Like" button on your website a little extra flavor and specific information. Adding a "Like" button to a website is a way to get extra exposure. People who "Like" your website will be able to display this "Like" to their friends, adding potential opportunities for further interest generation.

  • A verified Facebook account is required to embed a "Like" button onto a website. Verify your account by adding a mobile phone or a credit card to your account information. Embedding a "Like" button requires a basic understanding of HTML code implementation. If you aren't comfortable working with the HTML code of your website, don't attempt to embed the button. Any codes you insert into your website's HTML code must not disrupt any existing code framework. A misplaced block of coding text can cause serious disruptions in your website's display.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured