Search code examples
htmlfacebookcommentsfacebook-comments

Remove Facebook Comments from Site


I've got the basic comment box on my site. NOT attached to an app or part of one (as I don't develop apps).

    <div id="fb-root"></div>

                                <script>(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";
                                  fjs.parentNode.insertBefore(js, fjs);
                                }(document, 'script', 'facebook-jssdk'));</script>

                                <div class="fb-comments" data-href="http://www.-----.com/tech" data-num-posts="3" data-width="500" data-colorscheme="dark"></div>

In the head tag:

<meta property="fb:admins" content="My User ID"/>

Now, when someone comments on a friend's comment, I don't want that to show on my site. How the heck can I remove the comments from my site!? This is driving me insane.

So other than this https://developers.facebook.com/tools/comments, what can I do to remove some of these comments?


Solution

  • Ensure that you have replaced the code with your user_id from facebook

    You can find out your user id by going to the following address: http://graph.facebook.com/[YOUR USERNAME]

    For example, mine is http://graph.facebook.com/coulton resulting in the following.

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

    This must be in the tag of the page which contains the Comments plugin

    Now when you're logged in to Facebook with this account, you will see a "moderator view" button appear at the top of the comments window.

    Moderator view button

    You should now see the interface to edit the comments from your site.