amp-facebook-like
Introduction
The amp-facebook-like
component allows embedding Facebook like button into AMP files.
Setup
Import the amp-facebook-like
component to add a like button
<script async custom-element="amp-facebook-like" src="https://cdn.ampproject.org/v0/amp-facebook-like-0.1.js"></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="https://www.facebook.com/testesmegadivertidos/">
</amp-facebook-like>
If the explanations on this page don't cover all of your questions feel free to reach out to other AMP users to discuss your exact use case.
Go to Stack Overflow An unexplained feature?The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.
Edit sample on GitHub-
Written by @kul3r4