Facebook Auto Add Friends
For all of you GreaseMonkey and Bookmarklets aficionados who get added on Facebook a lot, here’s a quick snippet I wrote to confirm all friend requests at once (Facebook’s interface normally has you click on confirm and ask for details for each friend which is a pain):
var inputbuttons = $$('input.inputbutton');
for (var i = 0; i < inputbuttons.length; i++){
if (inputbuttons[i].value=="Confirm"){
if (inputbuttons[i].attributes['onclick'].value.substring(8,24)
== "click_add_friend"){
inputbuttons[i].click();
}
}
}
Update: I’ve extended this script to automatically ignore all other requests (invitations to groups, applications…). See the updated script at Facebook Auto Requests Ignore.
December 7th, 2007 at 8:13 pm
How do you install it?
December 24th, 2007 at 6:39 am
This is a javascript that you need your browser to run each time you are on Facebook’s request page. Either manually paste it into the javascript console, or look into the two links I mentioned at the start of the article.
January 11th, 2008 at 12:11 pm
[…] you’ve read my page on Facebook Auto Add Friends you know that I have a fake profile on Facebook that gets added a lot. If you’re French, […]
February 20th, 2008 at 2:21 pm
I cant get this to work in Greasemonkey and I have 1000 friend requests to accept.
Is it possible to make one which is a file you install?
Thanks
February 22nd, 2008 at 4:05 pm
See my comment on http://blog.mapmyglobe.com/facebook-auto-accept-requests/ for a fix.
As for the Greasemonkey script, I’ll write one some day. For now you can run it inside a javascript console.
February 22nd, 2008 at 4:10 pm
Oh and by the way: don’t forget you’ve got a 5,000 friends limit on Facebook !!
February 27th, 2008 at 2:34 pm
Ok so how do I install the fix?
Its not working, its really annoying.
I gather I put the script in the includes section but whats the excludes and Namespace?
Thank you so much.
February 28th, 2008 at 6:57 am
@Lucy:
I finally wrote a Greasemonkey script for this: it can be found at http://userscripts.org/scripts/show/23345, or directly here at http://blog.mapmyglobe.com/gmscripts/facebook-auto-confirm-friend-requests.user.js
Note that it also accept any Group request.
July 4th, 2008 at 12:43 pm
umm speaking of auto add friend… umm where would i put this code
January 21st, 2009 at 4:06 pm
Hi I’m trying to find instructions about adding friends…I joined the YoVille game and would like to add people as friends to build up my crew…however…when you invite..I can’t see anywhere that let’s me ensure they go to my ‘limited profile folder’ and not my main friends folder. It’s no good for me to change it after they accept by adding them to the custom settings part of privacy controls because by then they’ve seen all the info. Thxs for any help you can provide.
March 27th, 2009 at 4:34 pm
Thank you, thank you! Awsome.
May 27th, 2009 at 6:59 am
i installed the greasemonkey script, but nothing happens, how long does it take for this to work?
thanx in advance
wesley
June 4th, 2009 at 3:46 pm
Is there a way to set the dropdown listbox choice for what group to add all these friends to?
June 18th, 2009 at 3:19 pm
Is it possible that i could find a way to use this in javascript because i would like to turn this into a bookmarklet to use on other browsers?
Btw good job on making it. I trust it works using it your way.
July 29th, 2009 at 9:52 am
I have no real knowledge of scripts or html but I would really like to be able to accept people automatically. Can I just copy and paste the code? If so, where do I paste it? Please let me know!!
August 2nd, 2009 at 9:47 pm
I agree with Brian”Is there a way to set the dropdown listbox choice for what group to add all these friends to?” This feature would be good along with having it as a bookmarklet
November 15th, 2009 at 5:37 pm
I`ll try. Thanks.
November 23rd, 2009 at 1:44 pm
[… - blog.mapmyglobe.com is other nice website of information. Online Car insurance claims [… -
November 25th, 2009 at 9:49 pm
Nice post, thanks for sharing this
December 3rd, 2009 at 6:47 am
is there a way to auto add friends somehow on facebook?
January 25th, 2010 at 2:50 pm
I’m over the facebook 5000 friend limit. Is there a way to auto-reply each new request coming in & ignore the request?
February 6th, 2010 at 3:33 pm
this is not working