The comments plugin lets people comment on content on your site using their Facebook account. People can choose to share their comment activity with their friends (and friends of their friends) on Facebook as well. The comments plugin also includes built-in moderation tools and social relevance ranking.
Official Facebook documentation for this class can be found here.
Usage<fb-comments></fb-comments>
Inputs
colorscheme
(string) The color scheme used by the comments plugin. Can be light
or dark
. Defaults to light
.
The absolute URL that comments posted in the plugin will be permanently associated with. All stories shared on Facebook about comments posted using the comments plugin will link to this URL. Defaults to current URL.
A boolean value that specifies whether to show the mobile-optimized version or not. If no value is given, it will be automatically detected.
The number of comments to show by default. The minimum value is 1
. Defaults to 10
.
The order to use when displaying comments. Can be social
, reverse_time
, or time
. The different order types are explained in the FAQ. Defaults to social
The width of the comments plugin on the webpage.
This can be either a pixel value or a percentage (such as 100%) for fluid width.
The mobile version of the comments plugin ignores the width parameter and instead has a fluid width of 100%.
The minimum width supported by the comments plugin is 320px.
Defaults to 550px
.