Your Moodle version

Blocks: Facebook comments

Maintained by Picture of Ankit Agarwal Ankit Agarwal
Add Facebook like and comment box to your moodle.
Moodle 2.6, 2.7, 2.8

Add facebook like and comment box to your Moodle.

Please note: Due to the way Facebook plugins are designed, this plugin might have issues if the page it is displayed on is not accessible by Facebook.


  • Facebook comment box, with custom number of comments.
  • Facebook like box.
  • Facebook share button.
  • Ability to display either only comment or like box or both.
  • Display individual box for each page or a single one through out the site.
  • Ability to manage all comments posted using a Facebook app id.
  • Supports a dark and light coloured theme.




Picture of Ankit Agarwal
Ankit Agarwal (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Basheer Al-Ghazali
    Fri, Apr 12, 2013, 7:21 PM
    Hi Ankit.
    Thanks for releasing this block.

    It seems It is not installing on Moodle 2.2.2+ (Build: 20120323). I just tried it!
    I got the following message:
    "You must solve all the plugin requirements before proceeding to install this Moodle version!"
    It requires "Moodle 2012120300".

    Please advise.
  • Picture of Ankit Agarwal
    Mon, Apr 15, 2013, 9:38 AM
    Hi Basheer,
    The plugin version that you are using is designed and tested for Moodle 2.4 and 2.5 . Am not sure if it will work on Moodle 2.2, if you want to give it a try, update the requires in version.php of the file to your moodle version. Please note am not sure it will be bug free in 2.2 as I have not tested in that version of moodle.
    Hope that helps.
  • Art Lader
    Mon, Jul 8, 2013, 10:38 PM
    Thank you for this plugin. It is very useful and I greatly appreciate your making it available.

    I do have one question, though. I have Moodle installed in a subdirectory. When I post to FB via this plugin, the name of the site in the main directory is posted. (See screencap at .) That is a real problem for me.

    How do I tweak this? What file do I edit?

  • Picture of phuong hoang
    Tue, Jul 16, 2013, 12:34 PM
    Thanks for yr plugin. It's more convenient than my previous block (html).
  • Picture of phuong hoang
    Tue, Jul 16, 2013, 4:52 PM
    Hi everyone,
    How can get like this one (I use firebug to customize, however I don't know where it is). Have a look at the following picture)
  • Picture of Ankit Agarwal
    Tue, Jul 23, 2013, 11:24 AM
    Thanks for using the plugin. I am gald that the plugin is usefull for you guys.
    @phuong hoang
    Changing css of the plugin is against Facebook terms as far as I know. You can only choose between dark or light colored theme for the plugin. However if you really want it, you can always use the sdk and write a app that does it, without breaking any Facebook policies.
    @Art Lader
    I am not sure if that is possible either. It must already be linking to correct url, however am not aware of a way to force Facebook to show complete url instead of domain name in such situations. If you manage to find a way out, I would be more than happy to help you implement it.
  • Picture of romano gino
    Thu, Jul 25, 2013, 1:13 AM
    I received a warming from the plugin, but it is working well.

    Warning: is unreachable.

    It seems that can not access to the web page or do not have the permission.

    Anyway, very good plugin!
  • Picture of Ankit Agarwal
    Thu, Jul 25, 2013, 11:04 AM
    Hi Romano,
    The page Url you are using is hidden behind login, hence facebook cannot reach it. You can either allow facebook secured access based on useragent and other things, or you can use an alternate url which is public, for example the site url. You should be able to keep using the current url as well, but it is not recomended to do so.

  • Picture of Saul Fernandez
    Fri, Oct 4, 2013, 10:34 PM
    Hi every one.

    I am not developer and probably I am a bit confused and obfuscate about this matter. The pluggins ask for the API. I have been reading about it and I think that I understand it but although I put it every pluggin, none of them is working so I think it is my fault.

    Can someone give to me some extra info about it. What I did is:

    - Facebook Developer --> Create new App.
    - Facebook generates the app and it gives to me two things.
    App ID: (number)
    App Secret: (secret number)
    - I use the App ID in the config fbcomment pannel.

    Do I need to do something more? Because the only thing I achieve is to have the block but without nothing inside.

    Thanks for any help and very sorry for the troubles.
  • Picture of Ankit Agarwal
    Mon, Oct 7, 2013, 10:19 AM
    Saul, can you see the comment box or is it completely empty? if it is empty, please make sure there are no issues with internet connection. The block needs to be able to access facebook and facebook needs to be able to access the page where block is located. So you cannot use the block on site which is just on local network or has private access only.
  • Picture of alex martinez
    Fri, Jan 31, 2014, 1:05 AM
    hola Ankit Agarwal, no entiendo lo de "Facebook App id" , no se como debo crearla, aparecen muchas opciones .. .no se cual escoger.

    tampoco entiendo por que lo que escribo en el bloke no me aparece en la cuenta de facebook y lo que escribo en la cuenta de facebook no me aparece en el bloke en moodle
  • Picture of Ankit Agarwal
    Fri, Jan 31, 2014, 9:57 AM
    Hi Alex,
    Please use English to explain your problem. From what I understand you are having issues with Facebook App id field. Click on the help button in the form, that should give you a link to generate an app id. Feel free to report any further issues that you encounter, here ( and please use English to explain the problem, as I cannot understand spanish, unfortunately.
    Thanks for using the plugin.
  • Picture of Bill Steele
    Thu, Apr 3, 2014, 9:53 PM
    We are attempting to use fbcomments which appears to be an excellent block. The issue we are having is that when using the Zebra theme the text in the block is not wrapping. Is there something we can do to resolve this. We are using Moodle 2.5
  • Picture of Alexander Quesada
    Sun, Mar 1, 2015, 1:10 PM
    Hello, I just downloaded and installed this plugin. From the pictures, it looks amazing. However, I am having a problem with it. I am using the Aardvark theme and it shows only (Like, Share, and Comment Sections). It does not show the posts already on my Facebook. Also, the plugin itself is not sizing correctly, it looks too long and gets cut off. Any help is appreciated.
  • Picture of Ankit Agarwal
    Thu, Mar 12, 2015, 12:22 PM
    Thanks for using the plugins. I have received a few reports that there is a css issue with some themes. I have created for the same. I will have a look at that when I have some free time next. If some CSS expert can suggest a patch, that would be most welcome!

    Regarding Posts not showing up. What do you mean by "My facebook" ? It will show up posts/comments related to the "url" of your site/page only. Feel free to raise issues in github with detail replication instructions, for easier tracking.

Please login to post comments