How to Invite ALL Facebook Friends to a Group, Event or Page

by John P.

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:


  1. Go to your Facebook Event, Facebook Group or Facebook page and click “Invite People”.
  2. Once the page has loaded you should see all of your friends, but they are not selected.
  3. At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit “Enter”.
  4. If all goes well, it selects all of your friends!
  5. 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 }

1 Dave Duncan August 31, 2009 at 9:12 am

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.

Reply

2 fas August 31, 2009 at 10:47 am

Where there is something not available, hackers are to the rescue.

Reply

3 Lisa Marie Mary August 31, 2009 at 1:02 pm

Sweet! But it’s not against FB tos is it? They’ve banned so many people for this or for that….

Reply

4 Bessie December 15, 2010 at 10:39 pm

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!

Reply

5 Kane September 12, 2009 at 4:12 pm

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.

Reply

6 Kevin September 22, 2009 at 12:02 pm

Worked perfectly; thanks so much!

Kevin Grant
Operations Director
Neon Tommy

Reply

7 lc September 29, 2009 at 11:56 am

it only highlights the first page….not ALL people. Uggg

Reply

8 John P. September 29, 2009 at 3:16 pm

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.

Reply

9 Rob F October 20, 2009 at 5:03 pm

It only highlighted the first page for me as well. What am I missing??

Reply

10 2TheRescue August 28, 2011 at 7:18 pm

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

Reply

11 George November 13, 2009 at 9:34 am

Any news on this? I too only had the first page of a thousand plus friends selected.

Reply

12 Dayle November 19, 2009 at 12:02 pm

FYI, this works in Firefox perfectly, but in IE quite often you have to go one page at a time.

Reply

13 Natalie November 29, 2009 at 12:54 pm

This also works perfectly in Safari. :)
YAY FOR JAVASCRIPT!

Reply

14 brian December 9, 2009 at 11:26 pm

So what if we dont want to select ALL friends … just NEW friends that havn’t been suggested?

Reply

15 Shonendo December 21, 2009 at 10:40 pm

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 =/.

Reply

16 Anonymous December 23, 2009 at 10:45 am

Also works fine on Google Chrome :]

Reply

17 Mathii December 27, 2009 at 10:44 am

I invited 96 people !

Reply

18 lexy lou December 30, 2009 at 10:04 pm

ok i hope this works lol :P

Reply

19 jc January 2, 2010 at 12:13 pm

awesome

Reply

20 Scott January 3, 2010 at 5:19 pm

It still works great.

1300 people invited.

thanks

Reply

21 yash January 5, 2010 at 8:55 am

works fr google chrome too,thanks

Reply

22 Sam January 5, 2010 at 3:23 pm

This is awesome. Works.

Reply

23 Sam January 6, 2010 at 12:51 am

doesn’t work on Internet Explorer! DOES work on safari and firefox

Reply

24 malsta January 9, 2010 at 11:24 am

thanks this help takes to long to select friends thanks again.

Reply

25 g.juan January 13, 2010 at 9:33 am

very good, 100% ok…

Reply

26 sam khoury January 14, 2010 at 7:10 pm

this worked heaps good, thxx sooo much. Hackers 4Lyf

Reply

27 Agustin January 15, 2010 at 8:19 am

This is a GREAT tool. Thank you!!!

Reply

Leave a Comment

Previous post:

Next post: