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 ![]()
March 21st, 2008 at 4:50 am
@Jesse:
just out of curiosity, what’s your Facebook profile ?!?
March 21st, 2008 at 12:33 pm
@Julien:
shot ya an email
May 8th, 2008 at 4:55 am
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?
August 5th, 2008 at 11:25 pm
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
November 15th, 2008 at 11:07 am
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!!!
February 7th, 2009 at 9:34 am
how do you run the script sorry new here
February 23rd, 2009 at 5:43 pm
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.
April 16th, 2009 at 8:22 am
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!
May 18th, 2009 at 3:57 am
nice post… good information… thanks…
May 29th, 2009 at 2:20 pm
Is it still working? i’m not able to use it.
Please help
July 14th, 2009 at 10:08 am
How do you run this script on a web page though? Any tutorials out there? This script would save a mass headache.
July 15th, 2009 at 8:39 pm
how do I delete one person?
July 18th, 2009 at 1:52 pm
Thank you so much for this. I’ve had to deal with this also, having 5000 friends right now, and 7576 requests.
August 1st, 2009 at 6:31 pm
Хм…Неплохо
Блоггер - есть внушение , заполни форму для моём сайте ,оки ? )
August 5th, 2009 at 9:39 am
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
August 22nd, 2009 at 6:48 am
Need to delete just one friend… I don’t see the response here on how to do that… please advise.
September 2nd, 2009 at 7:16 pm
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
September 3rd, 2009 at 4:04 am
Great post. Nice blog design also, troubling to see your RSS feed though :S
October 9th, 2009 at 6:47 pm
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?
November 12th, 2009 at 8:29 pm
excellent article! i’ll be back for sure.
January 11th, 2010 at 10:10 am
I don’t get where you put in the code? x
August 8th, 2010 at 7:09 am
Thank you for the recommendation! I’ll give it a try.