Skip to content
Back to Blog Listing

Facebook: Invite All Friends Code

by Paul Ferrier on March 29th, 2010

Ok, if you’ve spent any time inviting friends on Facebook to become a fan of something, you know it can take forever.  Here’s some quick instructions on how to invite all your friends instantly.

  1. Click “Suggest Friends” under the profile image.
  2. If you’re using Firefox, Chrome, or Safari as your browser, copy this code:
    • javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
  3. Paste it into your browser’s address bar and hit enter on your keyboard.

If you’re using IE, you still have to click all your friends manually.

That’s it.  Hope this helps.

Related Posts

3 Comments
  1. Nice tip, Paul… I did not know that. Just another reason to not use IE ;)

  2. Paul permalink

    Update: You can use this code as well if the one above isn’t working for you:

    javascript:fs.select_all();

  3. Hey just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Internet explorer. I’m not sure if this is a format issue or something to do with internet browser compatibility but I figured I’d post to let you know. The layout look great though! Hope you get the issue fixed soon. Many thanks

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

Get Adobe Flash playerPlugin by wpburn.com wordpress themes