|Description||Embeds the Facebook page plugin.|
|Supported Layouts||fill, fixed, fixed-height, flex-item, nodisplay, responsive|
|Examples||See AMP By Example's amp-facebook-page example.|
You can use the
amp-facebook-page component to embed the Facebook page plugin.
<amp-facebook-page width="340" height="130" layout="fixed" data-hide-cover="true" data-href="https://www.facebook.com/imdb/"> </amp-facebook-page>
|data-href (required)||The absolute URL of the Facebook page. For example, |
|data-locale (optional)||By default, the locale is set to the user's system language; however, you can specify a locale as well. For details, visit the Facebook API Localization page.|
|data-tabs (optional)||Specifies the tabs to render (i.e., |
|data-hide-cover (optional)||Hides the cover photo in the header. Default value is |
|data-show-facepile (optional)||Shows profile photos of friends who like the page. Default value is |
|data-hide-cta (optional)||Hides the custom call to action button (if available). Default value is |
|data-small-header (optional)||Uses the small header instead. Default value is |
|common attributes||This element includes common attributes extended to AMP components.|
See amp-facebook-page rules in the AMP validator specification.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.Go to Stack OverflowFound a bug or missing a 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.Go to GitHub