Nay Dev
Nay Dev

Reputation: 1

how to delete comments on facebook comment box?

Right now i am using facebok comment box and i have made my self as moderator for this comment box.

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

I have specified my admin in meta tag

<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>

What is the way to delete any comments given by any user on facebook commentbox?

http://developers.facebook.com/docs/reference/plugins/comments/

Upvotes: 0

Views: 10333

Answers (3)

STEEL
STEEL

Reputation: 10017

Moderation Setup

To use the moderation tool, you either need to connect a Facebook account or a Facebook app to your Comments plugin implementation.

Setup using a Facebook Account Simply include the following meta tag in the section of every document in which you use the comments plugin:

A. <meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>

OR

Setup using a Facebook App B. <meta property="fb:app_id" content="{YOUR_APP_ID}" />

Source: https://developers.facebook.com/docs/plugins/comments#moderation-setup-instructions

Upvotes: 0

Matus
Matus

Reputation: 11

Specify fb:app_id as meta property in head of the html doc, like:

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

and repalce 123456 with your app id. Than, if you are the admin of the fb app, you should be able to moderate the comments using this link: https://developers.facebook.com/tools/comments

Upvotes: 1

Michael Pryor
Michael Pryor

Reputation: 25336

You can use the graph API to delete comments. Does that help?

Upvotes: 0

Related Questions