MapMyGlobe

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.

24 Responses to “Facebook Auto Add Friends”

  1. Tracy Says:

    How do you install it?

  2. Julien Says:

    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.

  3. Facebook Auto Ignore Requests | Blog - MapMyGlobe Says:

    […] 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, […]

  4. Lucy Says:

    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

  5. Julien Says:

    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.

  6. Julien Says:

    Oh and by the way: don’t forget you’ve got a 5,000 friends limit on Facebook !! :D

  7. Lucy Says:

    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.

  8. Julien Says:

    @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.

  9. marco perez Says:

    umm speaking of auto add friend… umm where would i put this code :P

  10. Terri Says:

    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.

  11. Slackety Pants Says:

    Thank you, thank you! Awsome.

  12. long ripps Says:

    i installed the greasemonkey script, but nothing happens, how long does it take for this to work?

    thanx in advance

    wesley

  13. Brian Says:

    Is there a way to set the dropdown listbox choice for what group to add all these friends to?

  14. Alessandro Says:

    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. :)

  15. spencer Says:

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

  16. Lee V Says:

    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 :)

  17. izulthea Says:

    I`ll try. Thanks.

  18. DJ Says:

    I’m over the facebook 5000 friend limit. Is there a way to auto-reply each new request coming in & ignore the request?

  19. Ahmed Mohammed Says:

    this shit dosent work !!

  20. Jody Dy Says:

    Excellent!! Enjoying your ideas. Top Job!.

  21. Agripina Allenbrand Says:

    Oh wow just what u’ve impressed upon us here definitely made my day! (ok i know u must think im a retard haha!) relaxing games haha! killmeimbored.com has them!

  22. suki Says:

    Found a good site to share, they have latest Free HD Movie online. Here the link www.hdstations.tk/

  23. tamir Says:

    how can i add friend at facebook auto?

  24. musthafa Says:

    haifacebookmeadd?

Leave a Reply