{module_facebookcomments}

Description

This module will display the Facebook Comments Field.

Syntax

{module_facebookcomments render="items|collection" moduleTemplateGroup="" language="en_US" url="" posts="" width="450" colorScheme="" collection="my_custom_collection_name" template=""}

Parameters

  • render - optional parameter, indicates whether the template content is used to render a collection or to render a single item. Take a look at the render parameter's article for more details on how to use it
  • moduleTemplateGroup - This will specify a module template group, which is a folder located in FTP under /ModuleTemplates/SocialMedia/FacebookComments/
  • language – Can be any Facebook locales ISO language and country codes combined by an underscore (e.g en_US). If the parameter is not present, this will default to en_US
  • url – If the parameter is not present, this will default to the current page URL. This must be a valid URL otherwise the Facebook plugin returns error when the button is pressed
  • posts – Any positive integers. This is used to set the maximum number of posts to display. If the parameter is not present, this will default to 10
  • width – Any positive integers. If the parameter is not present, the default value will be 450
  • color scheme – light, dark. If the parameter is not present, the default value will be light
  • collection - use this if you need to access the module's Liquid output tags
  • template - render the module using a custom template. You can leave the value of the template parameter blank to suppress the original output and use Liquid output tags instead

This module is rendered with these layouts:

  • Module templates > SocialMedia > FacebookComments > Default > container.html
    See this article for activation steps: Facebook Comments

Examples

  • {module_facebookcomments, url="{tag_itemurl_withhost}"} - This enables Facebook comments and use the full URL of the module item, for example http://mysite.com/module-url.

Syntax

{module_facebookcomments, render="items|collection", moduleTemplateGroup="", language="en_US", url="", posts="", width="450", colorScheme=""}

Parameters

  • render - optional parameter, indicates whether the template content is used to render a collection or to render a single item. Take a look at the render parameter's article for more details on how to use it
  • moduleTemplateGroup - This will specify a module template group, which is a folder located in FTP under /ModuleTemplates/SocialMedia/FacebookComments/
  • language – Can be any Facebook locales ISO language and country codes combined by an underscore (e.g en_US). If the parameter is not present, this will default to en_US
  • url – If the parameter is not present, this will default to the current page URL. This must be a valid URL otherwise the Facebook plugin returns error when the button is pressed
  • posts – Any positive integers. This is used to set the maximum number of posts to display. If the parameter is not present, this will default to 10
  • width – Any positive integers. If the parameter is not present, the default value will be 450
  • color scheme – light, dark. If the parameter is not present, the default value will be light

This module is rendered with these layouts:

  • Module templates > SocialMedia > FacebookComments > Default > container.html
    See this article for activation steps: Facebook Comments

Examples

  • {module_facebookcomments, url="{tag_itemurl_withhost}"} - This enables Facebook comments and use the full URL of the module item, for example http://mysite.com/module-url.