11

I'm an admin for a group on Facebook. A user has recently requested that all his content be removed from the group (he is no longer welcome to post to the group so I can't tell him to just remove the posts himself).

Is there a quick way to delete all of his posts (and comments)? I can delete them one by one but it'd take me ages. He's already been banned from the group, but I still see his posts. (Is it just because I'm an admin?)

3 Answers 3

2

https://developers.facebook.com/tools/explorer/ Often asked but little known tricks (and thanks to facebook's API you can do a lot more than you think automatically) to delete a spammers comments from your statuses, go to the link above and choose FQL, get an access token and run the following query to get the ID of the user:

SELECT fromid, text from comment where object_id in (select status_id from status where uid=me())  

Then use:

SELECT id from comment where object_id in (select status_id from status where uid=me() limit 0,100) and fromid=[id of user to delete comments]  

or

SELECT id from comment where object_id in (select link_id from link where owner=me() limit 0,100) and fromid=[id of user to delete comments]  

Then open your debugger console in the browser (usually F12) then fill in and paste the following javascript:

var acc=""; //put access token in here
var dat=""; //put data returned in here
for (var obj in dat.data) { var xhr = new XMLHttpRequest(); xhr.open("GET", "https://graph.facebook.com/v2.0/" + dat.data[obj].id + "?access_token=" + acc + "&format=json&method=delete&pretty=0&suppress_http_code=1"); xhr.send(); xhr.responseText; }
1
  • 3
    FQL is deprecated, is it possible to replicate this technique in Graph api as well?
    – YSY
    Commented Oct 11, 2015 at 10:10
1

As an admin you have access to the posts and members, irrespective of their ban in person.

You can put the name of him/her on the search in group "top right" and get the history, then delete the posts, with your admin power. But, You have to do it one by one (Facebook policy) or you have to wait until Facebook takes some action.

-1

You need to use facebook graph api to delete bulk post.

get post id then delete that post by this api

you can also use facebook graph explorer to delete temporary

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.