Enable Facebook comments Moderate button

Facebook comments Moderate button allows website administrators to control more precisely the comments written on their site. Facebook does a good job sorting comments by relevance but sometimes this is not enough. By enabling the button you also enable a "Moderator View" on the Comments plugin. This view just displays a checkbox next to every comment so you can hide several comments at once. The Moderate button appears at the bottom of every comment and displays three options:

Facebook comments Moderate button

  • Approve/Hide comment: Makes the comment public or hides it. If you are using an App Id tag you can chose whether comments are Public or Hidden by default. If you are just using FB comments without an App most comments are public by default. However, Facebook hides comments made with new FB accounts as they may come from spammers. Hiding the comment does not delete it but makes it visible just to the users's friends.
  • Ban/Unban user: Banning doesn't prevent the user from commenting but hides his/her comments from the public. Only the user's friends or fans (if it's a page) will see those comments. This includes comments the user made before being banned.
  • Boost/Unboost comment: Boosted comments are moved to the top of the thread making them more visible. It allows administrators to boost manually the most meaningfull comments.

Enabling the Moderate button

If you are not using a Facebook App for your site but just the Facebook plugins, you must tell Facebook somehow who is the administrator of your site. You do this by adding the following tag within the head of your site's html code:

<meta property="fb:admins" content="USER_ID"/>

where USER_ID is the Facebook user ID of the moderator you wish to add. You can find this ID by navigating to your/her/his Facebook profile and changing the "www" on the address bar to "graph". Hit Enter and you will get the ID on the first line. You can add more than one administrator by using a comma-separated list of IDs.

If you are using a Facebook App for your site you should have an html tag within the head that goes:

<meta property="fb:app_id" content="APP_ID" />

This is necessary for Facebook to associate your App with your site. Then you must be an Administrator (or creator) of the App in order to enable the Moderate button. This means that anyone you add as Administrador of your App on Facebook may Moderate your site's comments. You can manage your App from the App Dashboard (https://developers.facebook.com/apps).


  1. (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=myappid";
    fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));

    but commentmoderation is not working . i am not able to delete a irrelevant comment using all this. although i have set myself as comment moderater.Please help . thanks.

    1. Hi, you could start by adding the fb:app_id tag above to your pages' head (I know the App Id is also included in the code above, but since it's not working...). Also double check that you are set as app administrator and that the app has properly set the App Domains and URLs fields. I am not sure if sandbox mode affects moderation, you could check that too. If nothing else works using the fb:admins tag above should do it. Hope it helps.

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>