Important: this documentation is not applicable to your currently selected format email!
amp-facebook-comments
Description
Embeds the Facebook comments plugin.
Required Scripts
<script async custom-element="amp-facebook-comments" src="https://cdn.ampproject.org/v0/amp-facebook-comments-0.1.js"></script>
Supported Layouts
Usage
Use the amp-facebook-comments
component to embed the Facebook comments plugin.
<amp-facebook-comments width="486" height="657" layout="responsive" data-numposts="5" data-href="http://www.directlyrics.com/adele-25-complete-album-lyrics-news.html" > </amp-facebook-comments>
Attributes
data-href
The URL of the comments page. For example,
http://www.directlyrics.com/adele-25-complete-album-lyrics-news.html
.
data-locale
(optional)
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.
data-numposts
(optional)
The number of comments to show. Currently Facebook SDK limits this to max 100. For details, see the Facebook comments documentation.
data-order-by
(optional)
The order to use when displaying comments. For details, see the Facebook comments documentation.
title (optional)
Define a title
attribute for the component to propagate to the underlying <iframe>
element. The default value is "Facebook comments"
.
Common attributes
This element includes common attributes extended to AMP components.
Deprecated attributes
data-colorscheme
(optional)
The color scheme. For details, see the Facebook comments documentation.
Note: This is no longer supported by Facebook. For more details, follow our our tracking issue and Facebook's bug report.
Validation
See amp-facebook-comments rules in the AMP validator specification.
Вы читали этот документ десятки раз, но так и не нашли ответов на все свои вопросы? Возможно, другие люди столкнулись с такой же проблемой — обратитесь к ним на Stack Overflow.
Перейти на Stack Overflow Нашли ошибку или недостающую функцию?Проект AMP активно поощряет ваше участие и сотрудничество! Мы надеемся, что вы станете постоянным участником нашего открытого сообщества, но разовые вклады в работу над задачами, которые вам особенно интересны, также приветствуются.
Перейти на GitHub