MapMyGlobe

Delete your Facebook Friends

A non-neglictible part of this blog’s readers come for my Facebook scripts, which aim at automating a few things via javascript. One of those readers recently suggested a utility for automatically deleting friends. The reason for that is that he’s so popular he hits the 5,000 Facebook friends limit and can’t add any of the 11,000 peeps that sent him a request :) So, a workaround would be to first delete all of his current friends to make room for the new ones.

Now, my solution is not perfect because Facebook displays friends within a 50-items paging system. Which means you would need to run it 100 times to get rid of all your friends. Still, that’s a 50x improvement ratio if you really do need to delete your friends. The code is the following:

var remove = $$('a.remove');
for (var i = 0; i < remove.length; i++){
  remove[i].onclick();
  $('dialog_button1').click();
}

which you need to run at http://www.facebook.com/friends/?all. I also wrote a Greasemonkey script here or at http://userscripts.org/scripts/show/24199. Hope that helps somebody :)

26 Responses to “Delete your Facebook Friends”

  1. Julien Says:

    @Jesse:
    just out of curiosity, what’s your Facebook profile ?!?

  2. Jesse Says:

    @Julien:
    shot ya an email :)

  3. adrien Says:

    I’m wondering if this still works for you? I was testing it and though it comes up in my greasemonkey scripts it doesn’t seem to run. any thoughts?

  4. Lozza Says:

    Thanks for this! I modified it to delete friends from a certain group as when you delete from a group you get the option to remove from list or delete & then you need to confirm the deletion.

    var remove = $$(’a.remove’);for (var i = 0; i

  5. Garret Says:

    Did anyone get this script to work with the new facebook???? I got about 600 friends I mass added for mob wars to delete…….and the script doesn’t seem to work.

    if someone modified it and got it to work, please upload your entire working script so i can copy paste. THANKS!!!

  6. Michael R Says:

    how do you run the script sorry new here

  7. Russ Says:

    I agree. I would love a working copy of this where I can select only the group to delete from… I’m afraid to even try it currently as I don’t want any of my real friends removed…only the Mobwars and Mafiawars groups/lists.

  8. Bren Says:

    How do you run a script? I mass added for mafia wars too and would love to delete 50 at a time instead of one! thanks!

  9. delete facebook friends Says:

    nice post… good information… thanks… :)

  10. Nabih Says:

    Is it still working? i’m not able to use it.
    Please help

  11. ButtChew Says:

    How do you run this script on a web page though? Any tutorials out there? This script would save a mass headache.

  12. Susan Says:

    how do I delete one person?

  13. my_name Says:

    Thank you so much for this. I’ve had to deal with this also, having 5000 friends right now, and 7576 requests.

  14. СловарьДаля Says:

    Хм…Неплохо :) Блоггер - есть внушение , заполни форму для моём сайте ,оки ? )

  15. Laura Migz Says:

    Facebook started letting us remove about 20 friends at a time every 48 hours, based on those people who are no longer friends on our Mafia Wars game.

    this is simply not fast enough for me.. do you know the script that we may run ourselves?

    I have tried to copy and paste the browser 411 but to no success! ty
    xoxo

  16. Beth Jones Says:

    Need to delete just one friend… I don’t see the response here on how to do that… please advise.

  17. CHER Says:

    DOES ANY ONE KNOW HOW TO DELETE A PERSON ON FACEBOOK OMG I JUST CANT BELIEVE NO ONE KNOWS HOW TO DELETE A PERSON PLEASE HELP THANK YOU

  18. Mafia Wars Strategies Says:

    Great post. Nice blog design also, troubling to see your RSS feed though :S

  19. Jon Says:

    I just gave your script a run, had to update the URL it runs on I suppose because Facebooks URLs changed. I got it to run, and it actually goes through each individual on my list one at a time and marks them as deleted. However, they dont actually delete, and stay on my list.

    Has their been any updates or work arounds made to your script to support Facebooks new updates?

  20. Cody Serafino Says:

    excellent article! i’ll be back for sure.

  21. Rose Gebhart Loewecke Says:

    I cannot remain on facebook any longer. I would like to have my name removed altogether from facebook

  22. Rose Gebhart Loewecke Says:

    Please tell me how I can remove my entire facebook from the internet? I nead your help.

  23. Naeem Says:

    i am on slow Dileup and i have 5000 added alredy i want to remove 3000 to add new req any sulution

  24. Walker Bitar Says:

    Outstanding website, I really found it to be intriguing. I am looking forward to returning once again to learn what’s recent.

  25. Maculey Jacobson Says:

    I don’t get where you put in the code? x

  26. acai Says:

    It is frequently difficult to find relevant and good reading issues in the web today, and good thing is for for certain that I was able to bumble on my way here in your site. To say to you honestly, not merely was I entertained and degaged by your writing, I was able to gain quiet a total of perceptivenesses from the subject that you talked about.

Leave a Reply