how to delete comments on facebook comment box? - facebook

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/

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

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

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

Related

Facebook comment moderation implemented but not working

I needed a comment plugin with moderation feature, As I check the docs I can do it with fb comment plugin.
I have followed the documentation and attach fb comment plugin created from one of my app. Used the below code
<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/sdk.js#xfbml=1&version=v2.10&appId=5XXXXXXXXXXXXX4";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
And for the comment I have added
<div class="fb-comments" data-href="http://my.domain.com/folder/subfolder/page-1" data-width="100%" data-numposts="5"></div>
Meta tags on the page are as follows
<meta property="fb:app_id" content="5XXXXXXXXXXXXXX4" />
<meta property="og:url" content="http://my.domains.com/folder/subfolder/page-1" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta property="og:image" content="http://my.domain.com/folder/abc.jpg" />
My FB App has domain set to my.domain.com and the site url of website set to http://my.domain.com
I can see the comment plugin on the page and post with fb login all fine.
But I want comment moderation in this plugin, I am checking here https://developers.facebook.com/tools/comments/5XXXXXXXXXXXXXX4/ for comments to show/moderate but no comment is shown under this app.
I have took reference from the following questions, but none can resolve my problem
Facebook comment moderation tool
Can't get the Facebook comment moderation to work
comments plugin moderation tool not working
Please suggest any solution

How can I moderate Facebook comments posted in my website?

In meta I added
<meta property="fb:admins" content="myID"/>
<meta property="fb:moderator" content="myID" />
I tried with both and individual
code block
<div id="fb-root"></div>
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<fb:comments href="<?php echo $currPage;?>" num_posts="20" width="500"></fb:comments>
Here
$currPage is a dynamic page url
How can I moderate Facebook comments posted in my website?
I used the following method:
Put this in you Document in the head section:
<meta property="fb:admins" content="jayeshjain24ec" /> //username of moderater
<meta property="og:url" content="http://www.something.com/" />
step 1) Go to this url : https://developers.facebook.com/tools/debug
step 2) Enter your URL and click on debug.
In case if there is anything to be corrected,it will be mentioned here.
step 3)Correct all the warnings.Check the Scraped URL link at the bottom.Make sure it gets all the required Meta tags.
You will get a moderation option on your website once everything is ok.
ALTERNATE SOLUTION:
Give yourself admin rights for the app(there is an option in settings).
go to this url: https://developers.facebook.com/tools/comments?view=queue
just add facebook app_id in head tag
delete all the admins and then go to
https://developers.facebook.com/tools/comments
and then setting to set all the things

How to delete a irrelevant facebook comment from my website(Asp.net)

How to delete a irrelevant fb comment from my website. What i am doing is as:
<div id="fb-root">
</div>
making myself as admin :
<meta property="fb:admins" content="myfbid"/>
<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=MyID";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
Placed where i want FB-Comment box to be rendered:
<div class="fb-comments" data-href="mysiteurl.com" data-width="600"></div>
My basic question is how can i delete a comment which is vulgar and publicly visible ? Although i have set myself as moderator in tools then also i am not able to delete other people comment(facebook) from my website i can only mark them as spam but others can easily see the comment on thier individual login. Thank You
I used the following method:
Put this in you Document in the head section:
<meta property="fb:admins" content="jayeshjain24ec" /> //username of moderater
<meta property="og:url" content="http://www.something.com/" />
step 1) Go to this url : https://developers.facebook.com/tools/debug
step 2) Enter your URL and click on debug.
In case if there is anything to be corrected,it will be mentioned here.
step 3)Correct all the warnings.Check the Scraped URL link at the bottom.Make sure it gets all the required Meta tags.
You will get a moderation option on your website once everything is ok.
ALTERNATE SOLUTION:
Give yourself admin rights for the app(there is an option in settings).
go to this url: https://developers.facebook.com/tools/comments?view=queue

how to moderate comments from social plugin facebook?

I've just added this snippet to my wordpress blog...
<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_GB/all.js#xfbml=1&appId=145875562182317";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
With the code below on my single.php template.
<div class="fb-comments" data-href="<?php the_permalink() ?>" data-num-posts="10" data-width="642"></div>
Source taken from facebook developers site...
http://developers.facebook.com/docs/reference/plugins/comments/
This has added a sweet facebook comments box onto my blog posts. But I need to moderate the comments some how?
So I've read the documentation and it says add this meta into your head with my user ID.
<meta property="fb:admins" content="6468594984"/>
This seemed to work, only if I went to that post when I was logged in as facebook user 6468594984 - and I could see a moderator view button on the comments box. So this worked.
How ever this is slightly impractical.. so I went to the next level.
I created a facebook app with the correct site URL on the website tab ending with... /
Changed my previous meta for this...
<meta property="fb:app_id" content="766484684648"/>
and I presumed by going to...
http://developers.facebook.com/tools/comments
...that I could now moderate all the comments for my wordpress site by viewing app 766484684648.
But no comments are appearing on app id 766484684648 within the tools comments site.
Can any one help enlighten me on where I've gone wrong or where I need to fix.
Thanks hugely!!!
After you changed your meta tag, did you run your URL through the URL Linter? Perhaps Facebook just had not detected the change you made to the meta tag, due to caching.
Try pasting the URL you use for the comments module into http://developers.facebook.com/tools/debug and verify that there are no errors, and that the app id is coming through.

FB comments working on site but moderation tool = empty

I integrated FB comments on a static page. I can comment and see my comments, but I have problems with moderating comments in the moderation tool. There are no comments in the tool.
I have this code, which should help me to modearete:
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml">
<meta property="fb:admins" content="7675xxxxx" />
<meta property="fb:app_id" content="xxxxx5675551420" />
And in inside the body I have:
<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/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="http://www.example.com/demo" data-num-posts="10" data-width="900"></div>
What is the problem here?
By the way, how can I set it up, that also NON-Facebook Users can comment? I want to
allow anonymous comments. I see no settings for that?
thx
Did you added your user account as moderator in http://developers.facebook.com/tools/comments?
If not, try to add your user account in your application as moderator. Then see is it working.
Please note moderation tool will be available only for non-admins's comments. You cannot moderate your (or other admins') comments.
Edit: Moderators can moderate only 'normal' users comments. Try commenting from a FB account which is not in the comment moderators list.