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!!!