This article describes how to set up the Facebook Buttons tag.
Tag tips
Some configuration parameters only apply to Like box, such as border color and height.
If you do not already have one, use the Content Modification extension to insert a new
DIVin your page.HREFdefaults to the page URL unless override by mappings.Language needs to be in the format
ll_ccllis the two-letter language codeccis the two-letter country code- See Facebook Locales for all supported codes.
Kid Directed
- Must be set to true if your web site or online service, or a portion of your service, is directed to children under 13.
Tag configuration
Go to the tag marketplace to add a new tag. For more information, see About tags.
When adding the tag, configure the following settings:
Action
Div ID
DIV IDwhere the button displays.
HREF
- URL of the page.
- Defaults to
dom.urlin the data layer
Language
- Default is
en_US - The basic format is
ll_CC, wherellis a two-letter language code, andCCis a two-letter country code. - See Facebook Locales for all supported codes.
- Default is
Color Scheme
Layout
- For use with Like and Share buttons.
Kid Directed
- Must be set to
trueif your web site or online service, or a portion of your service, is directed to children under 13.
- Must be set to
Size
Width
Data mappings
Data mappings send values from data layer variables to the corresponding variables in the vendor tag. For more information, see About data mappings.
The available categories are:
Standard
| Variable | Description |
|---|---|
action |
|
language |
|
href |
|
config.colorscheme |
|
appId |
|
config.size |
|
config.width |
|
Like
| Variable | Description |
|---|---|
like.layout |
|
like.show_faces |
|
like.kid_directed |
|
like.color_scheme |
|
like.### |
|
Recommend
| Variable | Description |
|---|---|
rec.layout |
|
rec.show_faces |
|
rec.kid_directed |
|
rec.color_scheme |
|
rec.### |
|
Share
| Variable | Description |
|---|---|
share.layout |
|
share.kid_directed |
|
share.### |
|
Send
| Variable | Description |
|---|---|
send.kid_directed |
|
send.color_scheme |
|
send.### |
|
This page was last updated: November 18, 2026