Back to home

Comments (class exported as FBCommentsComponent)

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.

link Usage
<fb-comments></fb-comments>
link Inputs link colorscheme (string)

The color scheme used by the comments plugin. Can be light or dark. Defaults to light.


link href (string)

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.


link mobile (boolean)

A boolean value that specifies whether to show the mobile-optimized version or not. If no value is given, it will be automatically detected.


link numposts (number)

The number of comments to show by default. The minimum value is 1. Defaults to 10.


link orderBy (string)

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


link width (string)

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.