I set up a couple of groups on Facebook – our Wealth Nation group (PLEASE JOIN!) and the Stop the Farmville Madness!!! group – and wanted to invite all my friends, but it would have taken an eternity because for some strange reason Facebook doesn’t allow you to “select all” friends when sending an invite. I mean, they’ll let you do it… but only if you click one at a time! Uugh.
Well anyway I went on a little search and found that you could cheat the Facebook system by inserting a little javascript to make it happen! Here is how to do it:
- Go to your Facebook Event, Facebook Group or Facebook page and click “Invite People”.
- Once the page has loaded you should see all of your friends, but they are not selected.
- At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit “Enter”.
- If all goes well, it selects all of your friends!
- IMPORTANT: NOW YOU MUST WAIT!!! If you have a lot of Facebook friends, you have to leave that window open for a long time so it sends all of the invitations! I have about 1,400 and it took like 15-20 minutes to send all of the invitations. The Invite window will close when its done. So exercise patience!!!!!!!!!!
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
If that first method doesn’t work for you give this a try:
Right click the “friend box” and open it in a new tab…
Then paste this ==> javascript: fs.select_all()
Finally, there is now a GreaseMonkey script for Firefox to Invite All Facebook Friends if you want to try that as well..
Oh, and by the way, if you found this helpful please tweet it or share it on Facebook to help others find it too. The more people who share it, the more people it helps! It takes some time for all of the Facebook invites to be sent. They go into a queue. So if you saw them all get selected, just be patient. The messages WILL get delivered over the next 24 hours or so.
UPDATE
If none of that is working for you, try the following:
javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName('input');for(var i=0;i<c.length;i++){if(c[i].type=='checkbox'){c[i].click();}}}check_all_in_document(window.document);for(var j=0;j<window.frames.length;j++){check_all_in_document(window.frames[j].document);}



{ 488 comments… read them below or add one }
Next Comments →
You hit the nail on the head regarding the annoyance of the individual invites on Facebook, the ability to send an invite to “all” will not only save time it will hopefully lend itself to a quicker response rate from the invitees. Great stuff as usual, thanks guys.
Where there is something not available, hackers are to the rescue.
Sweet! But it’s not against FB tos is it? They’ve banned so many people for this or for that….
I don’t see why it would be, With having over 1230 friends, It’d be kinda hard for me to go threw them all!
Brilliant javascript! I spent a bunch of time messing around with Greasemonkey FireFox scripts to try to accomplish the same thing, but your method is so simple…and it works!
Thanks so much.
Worked perfectly; thanks so much!
Kevin Grant
Operations Director
Neon Tommy
it only highlights the first page….not ALL people. Uggg
Nope. You’re wrong. It highlights ALL contacts. We used it on an account with over 4,000 friends and it did them all at the same time.
John P.
It only highlighted the first page for me as well. What am I missing??
Facebook only displays the first 100 or so friends in the “invite guests” window. If you scroll to the bottom of your friends list in the invite window, all friend icons will be revealed. THEN when you run the script, ALL friends will be selected. The script ACTUALLY CLICKS each icon for you. It cannot click what it does not see!
Good Luck, I use this script ALL THE TIME, trust me it works
Any news on this? I too only had the first page of a thousand plus friends selected.
FYI, this works in Firefox perfectly, but in IE quite often you have to go one page at a time.
This also works perfectly in Safari. :)
YAY FOR JAVASCRIPT!
So what if we dont want to select ALL friends … just NEW friends that havn’t been suggested?
Recently, I’ve noticed that even with this code, it only invites up to about 100 friends. It used to invite them ALL, but somehow fb placed a limit =/.
Also works fine on Google Chrome :]
I invited 96 people !
ok i hope this works lol :P
awesome
It still works great.
1300 people invited.
thanks
works fr google chrome too,thanks
This is awesome. Works.
doesn’t work on Internet Explorer! DOES work on safari and firefox
thanks this help takes to long to select friends thanks again.
very good, 100% ok…
this worked heaps good, thxx sooo much. Hackers 4Lyf
This is a GREAT tool. Thank you!!!
Next Comments →