Want to know how to invite all your friends to a Facebook event all at once?

Do you want to invite lots of your Facebook friends to an event, page or group? It’s a tedious task to select them one-by-one, which is why the “Toggle all” button is so great. It lets you select them all at once at the push of a button – it’s a great time saver.

Warning: I will not be held responsible for any consequences you create by using this information. It’s powerful and can be abused. Be careful and do not overuse this secret…

Facesniper - Accurate Facebook Targeting

A Facebook trick to select all your friends at once

Before I tell you how to get the Toggle all button, I’ll show you a code you can use to quickly select them all. Then I’ll tell you how to use it. You might already know, that’s why I put the code first.

javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};

1. Login to Facebook and then go to any event, your page, or group you want to invite people to.

2. After you indicate whether you’re attending or maybe attending, the “Invite friends” button appears and then you have to click it.

3. Scroll down to the bottom of that window, so all your friends load. You might have to scroll multiple times. You can’t select friends who don’t appear in the window.

4. Copy the code above and paste it into the address bar of your browser (where it says www.facebook.com/event…) and then BEFORE you hit the Enter key: Press the HOME key or scroll back to the beginning of the code you pasted in the address bar. Make sure it starts with “javascript:…” – it may not! It might start with “var x=…” Retype javascript: manually at the beginning. :)

Once again, if you paste the code and press Enter and it goes to a Google search results page… you’ve got to add javascript: to the beginning… then hit Enter.

5. Wait until all the visible friends are selected (this might take a little while.)

6. You can also add a personal message before you click the “Send Invitations” button, if you’d like.

7. Click “Submit”

I hope you found this useful.

Being able to find the active, popular people is invaluable. I love this tool! Check it out…

Facesniper - Accurate Facebook Targeting

Toggle All Button - Another Facebook trick to select all your friends at once

1. You need the Google Chrome browser to get the button. This is the browser I recommend using anyway since it’s so fast. If you don’t have it yet, download it from http://www.google.com/chrome

2. Open Google Chrome and download the add on called “Extensions” here https://chrome.google.com/extensions

3. Go to https://chrome.google.com/webstore and search for “Toggle all” or “Facebook Inviter”

4. Click the “ADD TO CHROME” button beside Facebook Inviter.

5. Click Install.

6. Once it’s installed, login to Facebook using Google Chrome and then go to any event, your page, or group you want to invite people to.

7. After you indicate whether you’re attending or maybe attending, the “Invite friends” button appears and then you have to click that button.

8. You’ll notice that a “Toggle all” button appears with the Submit and Cancel buttons. Click the “Toggle all” button and it will automatically select all your friends for you. It may take a few moments to process.

9. Click “Submit”

NOTE: You only have to install the “Toggle all” button once. After that, it’ll always be there for you to use.

Hope that helps!

Facesniper - Accurate Facebook Targeting

take the conversation further

Related posts:

About Bevan Bird

Bevan Bird loves doing handstands, bouldering and BMXing. He lives in beautiful Vancouver, BC, Canada. He was born there, but traveled a lot before returning home. As Director of Social Media at MeetLab, he's helping bring visionary leadership to Vancouver's aspiring entrepreneurs. He's passionate about helping foster more startup success stories like PlentyofFish and Hootsuite and attract top talent to our amazing city! Feel free to join the 2,000 people who follow him on Twitter. And if you're an entrepreneur, online marketer or social media marketer, check out what he's doing with Vancouver Visionaries! Follow @604Visionaries on Twitter for the best updates on growth-hacking.
This entry was posted in Facebook Tips. Bookmark the permalink.
  • Claes

    they made a new layout, so these codes doesn’t work anymore :/

  • Smedley Butler

    works more without the fancy html quotes: elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type=”checkbox” )elms[i].click()};

  • Smedley Butler

    meh, replace them manually. stupid wordpress…

  • http://olivo.net/ Marco

    Hi, this code does not work anymore.
    You can find updated code here:
    http://olivo.net/2011/04/how-to-invite-all-your-facebook-friends-to-an-event-at-once-code-has-changed/

    • http://bevanbird.com Bevan Bird

      Thanks very much Marco. I tried your code on Chrome and it worked for me too. :) Have a very Happy New Year! :)

    • Muku

      This code is now not work at new version of Facebook. http://fbpageinvite.blogspot.com/ So here we provide a new fresh code (Tested 100% works) with which we automatically invite all Facebook friend in just a second. Get Code : http://fbpageinvite.blogspot.com/

  • Uan

    Fantastic – it works perfectly !

    Many thanks, Marco !

    Ian

    • http://bevanbird.com/ Bevan

      You’re welcome! My name’s Bevan.
      Ian, have we met?

  • Marc Azada

    Awesome trick! I never knew there is a trick like this on facebook. I’ll definitely try this out one of these days.

  • http://www.facebook.com/profile.php?id=1153487242 Le?nard? Wëlls Giga?berbusynër

    Thanks for you work dude!
    I modified a bit this script to enable “range invitation”.
    With this version, if you had a unique list with more than 100 persons, you could invite a range of persons from MIN to MAX.
    E.g. you first invite 1 -> 100, then 101 -> 200 and so on.
    (You just have to use numbers in place of MIN and MAX in the last code line)
    Bye!

    javascript:

    elms=document.getElementsByName(“checkableitems[]“);

    function check(min, max) {
    for (j = 0; j < min && j < elms.length; j++) {
    }
    for (i = min – 1; i < max && i < elms.length; i++) {
    if(elms[i],type="checkbox") {
    elms[i].click()
    }
    }
    }

    check(MIN,MAX);

    • http://bevanbird.com Bevan Bird

      Thanks Leonardo! But the code no longer works… I’ve updated the post since I found another way to invite all your friends at once with the Toggle All button (it’s a Chrome extension) and I’ve tested it – this works. Merry Christmas! :)

  • http://www.facebook.com/people/Corina-Popescu/1311014561 Corina Popescu

    Thanks. This will work only for facebook.
    This is the code to invite all friends from webmail address book:
    http://www.inviteallfriends.net

  • Navin

    Facebook has updated their layout, so these codes doesn’t work anymore :/ check new method ->

  • Pingback: Ron Paul on the Issues - Page 443 - ALIPAC

  • ShapeShifta

    Works great, I forgot about the POST 50 ppl @ a time, but I managed to get it done…

  • Julia Rodriguez

    Thanks for the info on the Toggle Button on Chrome. It worked perfectly!

    • http://bevanbird.com Bevan Bird

      You’re welcome, glad you got it! :)

  • Matija Villa

    it works, but the only thing is the (no offense) in the stupidity of the author of this post in which he wrote the script without clearly designating where does the script end…it ends with ALERT.. instead of ALERT (‘

  • http://www.facebook.com/garry.lachman Garry Lachman
  • Poepoekaka

    works fine, Hero!

  • http://www.facebook.com/george.rabanca George Octavian Rabanca

    I had this problem too and created a small facebook app that lets you select a list of friends and invite the whole list to your event. You can check it out at http://www.lisvite.com. Please let me know if anything does not work as expected.

  • billy

    javascript:var
    x=document.getElementsByTagName(“input”);for(var
    i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}};
    alert('Done: please scroll and repeat until all your friends have been selected');

  • Muku

    This code is now not work at new version of Facebook. So here we provide a new fresh code (Tested 100% works) with which we automatically invite all Facebook friend in just a second. Get Code : http://fbpageinvite.blogspot.com/

  • Pingback: How I went from broke to earning over $100,000 this year! | The Dream Travel Networker's Blog