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);}


{ 491 comments… read them below or add one }

1 Jenn January 15, 2010 at 12:30 pm

Worked perfectly! Thanks!

Reply

2 Katherine January 18, 2010 at 3:38 pm

Does this work for Google Chrome?
I tried but it just “bing”s what the javascript…

Reply

3 Katherine January 18, 2010 at 3:40 pm

Sorry typo..

It Just “bing”s the javascript.
Which is how I found this website in the first place.

Reply

4 rareskills January 20, 2010 at 8:30 pm

depends on your browser…use chrome and it will have all your friends, ie uses pages, not sure about firefox

hope this helps

Reply

5 chrisabila January 21, 2010 at 5:01 am

ingenious!!!

Reply

6 Karl January 21, 2010 at 10:57 am

Will it re-invite those friends who are already in my group? (not so good) or just send an invitation to those who didnt join the group yet? (thats what we want). By default ALL are selected..i do not dare to press the submit button. anyone can tell me if this code re-sends invitations or not? thanks a lot

Reply

7 Gina January 21, 2010 at 6:35 pm

It works- thanks !!! over 2000 friends selected! It did take a while though- so in case you think it is freezing up just be patient.
I have a mac and I got that spinning wheel for a long time but then it finished and all were selected.

Reply

8 Tom Furman January 28, 2010 at 11:07 pm

The code stopped working this week. It’s really slowing down our ability to promote art shows in South Florida. Many of these shows support major causes!
Any chance you could tweak the code?

–Tom

Reply

9 Gary L January 29, 2010 at 1:01 pm

Just wondering if the code was updated like Tom had asked?

Thanks

Reply

10 Robin White January 30, 2010 at 8:23 pm

We used the javascript code to select all friends to facebook and it worked great. However, now they must have disabled it, because it no longer works. Oh such a bummer, that was a godsend. Have you figured anything new out about how to do it? I’ll be watching your blog from now on! Thanks! –Robin

Reply

11 linda January 31, 2010 at 8:35 am

i enjoy facebook with all my friends and family

Reply

12 Ivan February 4, 2010 at 12:39 pm

Its working for me:)

Reply

13 Jan February 5, 2010 at 6:56 am

working for me too :o)))

Reply

14 Mick February 5, 2010 at 9:04 am

stopped working for me aswell looks like its back to clicking everyones name again :(

Reply

15 Ivus4e February 5, 2010 at 10:38 am

It is working for me :)

Reply

16 Ryan February 5, 2010 at 5:16 pm

It works for me.. i’m using Google Chrome.

Reply

17 Anonymous February 8, 2010 at 3:52 pm

Thnak you so much
this work very well to me!

Thank’s again!

Reply

18 Michael February 9, 2010 at 6:53 pm

Works for me in Firefox 3.6.

Reply

19 devz February 9, 2010 at 11:15 pm

i tried it today and it works fine for me

Reply

20 Andrew February 10, 2010 at 12:14 am

It worked fine for me in IE.

Reply

21 PyRoSingh February 10, 2010 at 12:38 pm

no, its still working i just tried it :)

Reply

22 ayhan February 11, 2010 at 1:30 am

merhaba

Reply

23 Antwain February 11, 2010 at 2:17 am

I downloaded google chrome and it works well on there. Not with firefox so much anymore.

Reply

24 genrose February 12, 2010 at 2:24 am

yes its working…

Reply

25 genrose February 12, 2010 at 2:25 am

javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}

Reply

Leave a Comment

Previous post:

Next post: