|Description||Embeds the Facebook like button plugin.|
|Supported Layouts||fill, fixed, fixed-height, flex-item, nodisplay, responsive|
You can use the
amp-facebook-like component to embed the Facebook like button plugin.
<amp-facebook-like width=90 height=20 layout="fixed" data-layout="button_count" data-href="https://www.facebook.com/testesmegadivertidos/"> </amp-facebook-like>
The absolute URL of the page that will be liked. For example,
By default, the locale is set to user's system language; however, you can specify a locale as well.
For details on strings accepted here please visit the Facebook API Localization page
The verb to display on the button. Can be either
recommend. The default is
The color scheme used by the plugin for any text outside of the button itself. Can be
dark. The default is
This attribute is also known as
data-kid_directed_site in the Facebook SDK.
If your web site or online service, or a portion of your service, is directed to children under 13 you must enable this attribute. The default is
Selects one of the different layouts that are available for the plugin. Can be one of
box_count. The default is
A label for tracking referrals which must be less than 50 characters and can contain alphanumeric characters and some punctuation.
Specifies whether to include a share button beside the Like button. This only works with the XFBML version. The default is
Specifies whether to display profile photos below the button (standard layout only). You must not enable this on child-directed sites. The default is
The size of the button, which can be one of two sizes,
small. The default is
For details, see the Facebook comments documentation.
This element includes common attributes extended to AMP components.
See amp-facebook-like rules in the AMP validator specification.