Plugins You can find out about all the publicly available Grails plugins.

Facebook Comments Plugin

  • Tags: /
  • Latest: 1.0
  • Last Updated: 10 August 2013
  • Grails version: 1.3 > *
1 vote
compile "org.grails.plugins:facebook-comments:1.0"

 Documentation  Source  Issues


Easy Facebook Comments Integration


grails install-plugin facebook-comments



Following configuration options are available.
  • grails.plugin.facebookcomments.appId
  • grails.plugin.facebookcomments.width
  • grails.plugin.facebookcomments.colorscheme
  • grails.plugin.facebookcomments.num_posts
  • grails.plugin.facebookcomments.href = { bean -> }
All of the config options are optional. See facebook documentation for details about possible values.


Follow this steps for integration

Step 1: Put <fb:initFbCommentsJS appId="your app id" /> right after opening <body> tag. It will initialize facebook comments js sdk. appId parameter is optional and if not specified it will be picked up from config.

step 2: put <fb:comments width="" colorscheme="", num_posts="" mobile="" href=""/> in the page where you want comments to be displayed. Again all of the parameters are optional and if not specified they will be picked up from config.

Note: Replace href with the url that you want to associate this comment box with. Read facebook docs for further details

Further docs can be found on GitHub


1.0 - 08/10/2013
  • Initial release