• websites



The amp-facebook-like component allows embedding Facebook like button into AMP files.


Import the amp-facebook-like component to add a like button

<script async custom-element="amp-facebook-like" src=""></script>

Basic usage

You can use the amp-facebook-like component to embed the Facebook like button plugin. For the list of supported layouts and attributes you can refer to the documentation

<amp-facebook-like width="110" height="20" layout="fixed" data-layout="button_count" data-href="">
Need further explanation?


Go to Stack Overflow
An unexplained feature?


Edit sample on GitHub