amp-facebook-like

Edit on Github
Open in Playground

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

Example

<amp-facebook-like width="90"
  height="20"
  layout="fixed"
  data-layout="button_count"
  data-href="https://www.facebook.com/testesmegadivertidos/">
</amp-facebook-like>