A single click on the Like button will 'like' pieces of content on the web and share them on Facebook. You can also display a Share button next to the Like button to let people add a personal message and customize who they share with.Like Button ConfiguratorCode ExampleSettingsAdjust LanguageFAQs
Pick the URL of a website or Facebook Page you want to use with the like button.
Paste the URL to the code configurator and adjust settings like the
width of your like button. Click the
Get Code button to generate your like button code.
Copy and past the snippet into the HTML of the destination website.
Copy & paste the code example to your website. Adjust the value
data-href to your website URL. Next use the
og:*** meta tags to adjust your link preview.
data-href should use the same URL.
In addition to the settings above, you can also change the following:
The verb to display on the button. Can be either
The color scheme used by the plugin for any text outside of the button itself. Can be
The absolute URL of the page that will be liked.
If your web site or online service, or a portion of your service, is directed to children under 13 you must enable this
Selects one of the different layouts that are available for the plugin. Can be one of
A label for tracking referrals which must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). See the FAQ for more details.
Specifies whether to include a share button beside the Like button. This only works with the XFBML version.
Specifies whether to display profile photos below the button (standard layout only). You must not enable this on child-directed sites.
The button is offered in 2 sizes i.e.
The width of the plugin (standard layout only), which is subject to the minimum and default width. Please see Layout Settings below for more details.
There are the following options:
Minimum width: 225 pixels.
Minimum width: 55 pixels.
Minimum width: 90 pixels.
Minimum width: 47 pixels.
js.src to use your locale. Replace
en_US with your locale, e.g.,
fr_FR for French (France):
js.src = "https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=
You may need to adjust the width of a Social Plugin to accommodate different languages. You may find more information on our Localization & Translation page.