UPDATE 2: Still a lot of visitors come to my site, so I decided to update the code to a newer one which works as of November 2011. It’s worth to mention that executing Javascript directly in the URL field is not supported for all browsers. It should work in Google Chrome, there is now even an extension for this feature called Facebook Super Select All. Thanks for the contribution in the comments!
UPDATE 1: After this post was originally written, Facebook came up with a solution to create lists of friends. You can create several lists, based on your own personal criterias, and add your friends to different lists, which you then can send event or page invitations to. I would rather recommend using this solution provided by Facebook, so that you don’t send information which might not apply to all of your friends.
To create a list, go to your Account settings, choose Edit Friends and Create new list. After you’ve created new lists you have an option to filter friends based on list names when you’re inviting friends to events or pages.
The newly redesigned Facebook has led inviting members to an event/group/page to an even more complex process. Why can’t they just make a “select all” button? Initially I got tired of clicking several hundred times on all the pictures to invite people to my event, so I came up with this small piece of Javascript:
Go to your event/group/page, click invite people and then paste this snippet in the URL field of your browser.
Left-click the mouse in the URL field and hit Enter. Your invitations will not be sent yet, but all your friends will be selected. Click the “Invite” or “Send” button on the Facebook page to finally send the invites.
Soi! Done in one go
March 29th, 2011 at 29 March, 2011
there u go guys…. this is the new script which is working in NEW UPDATED FACEBOOK. I have used it today on 29/03/2011 and it working.
Make one thing sure when you Click ‘Select Guests to Invite’ — Scroll down to the bottom in your list of friends, until you see all your firends. And after that copy paste this scrip on the URL. and hit ENTER wait for 30 seconds atmost and it will select all your friends…
javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i> ITS WORKING>>>
March 30th, 2011 at 30 March, 2011
can anybody tell me if there is a new version of this m i have a mac i don’t know weather it will work if ter eis a nw version , somebody hit me up , thanks
March 31st, 2011 at 31 March, 2011
is their an updated link code for face book (the 1 to invite all your friends to an event in 1 go)
as scince its f.b changed the old code doesnt work
thanks
March 31st, 2011 at 31 March, 2011
lol why didnt i read ova ppls posts….duh talk about asking the same quest 1000 times lol
April 2nd, 2011 at 2 April, 2011
How one for about inviting fans of a page to page events? Anyone??
April 2nd, 2011 at 2 April, 2011
For Full Description and step by step guide how to invite all your friends (NEW UPDATE) go here: http://de-motivational-posters.blogspot.com/2011/03/how-to-select-all-friends-when-inviting.html
April 2nd, 2011 at 2 April, 2011
Hey I just cobbled this together. Careful, it just blindly selects ALL checkboxes on the page so do review your options after using it, but it does get the main task of clicking all those boxes done in one go.
javascript:objs=document.getElementsByClassName(‘checkbox’);for(var i in objs){objs[i].checked=true;}
Also, I’ve only used this in Safari, there’s a good chance it won’t work in IE or any older browser that doesn’t support the getElementsByClassName() method.
April 2nd, 2011 at 2 April, 2011
Err, scratch that. I’m no longer sure that worked as FB doesn’t tell you how many invites have been sent. If it doesn’t work, try this:
javascript:objs=document.getElementsByClassName(‘checkbox’);for(var i in objs){if(typeof objs[i] === ‘object’){objs[i].click();}}
April 2nd, 2011 at 2 April, 2011
Any hope? I’m not seeing results. Could someone shoot one at me?
April 3rd, 2011 at 3 April, 2011
This works! scroll all the way to end of your friends list before you run the script or it will only select the first 100..This came from – http://giacobam.blogspot.com/2011/03/inviting-all-your-friends-to-facebook.html
javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
April 3rd, 2011 at 3 April, 2011
doesnt work anymore. is there any updated code?
April 4th, 2011 at 4 April, 2011
BIG BUMMER……….. why would they do that??? mmmmmm
April 4th, 2011 at 4 April, 2011
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/
April 5th, 2011 at 5 April, 2011
It seems the code does not work any longer. Ugh! Can you provide an updated code for those of us seeking to invite all friends in one go. It’s a pain in the ass to click on each friend. Takes over an hour each time.
Help!
April 5th, 2011 at 5 April, 2011
The event page for FB has been reformatted.
If you bring up the “Invite friends” dialog (by clicking on the “+ Select guests to invite”), the following script works:
javascript:elms=document.querySelectorAll(‘.fbProfileBrowserListContainer input’);for(var fid in elms){elms[fid].click();}
If you have many friends, you’ll need to scroll down the guest list to force FB to load all your friends onto the selection list before using this script.
April 5th, 2011 at 5 April, 2011
doesn’t work anymore man got a new one which does?? let us know right pain not being able to invite all.
April 7th, 2011 at 7 April, 2011
I’ve tried it, hic, It don’t work . Maybe FaceBook changed it’s security
Anyone have another method for add all friend when send message from Event ?
Thanks.
April 8th, 2011 at 8 April, 2011
The new code to invite all your friends to a facebook event in one click is
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
you'l need to scroll down so that all your friends load first
April 11th, 2011 at 11 April, 2011
When I select “Add Friends to Group”
All i get is a bar that says “add” on the right. I do not get the whole box with all the names. Please help. Extremely frustrated.
April 12th, 2011 at 12 April, 2011
didn’t work for me. using internet explorer. tried the new code and everything.
April 13th, 2011 at 13 April, 2011
Please help!!!! This code won’t work for me and i don’t know why!!! whenever i try to add people to a group their pictures don’t even come up, you have to type each name in one by one which takes forever and i always forget people too!!!! can anyone help please?????
April 14th, 2011 at 14 April, 2011
I can’t get this to work…help, please.
April 16th, 2011 at 16 April, 2011
not working for me either…… complete bummer
April 18th, 2011 at 18 April, 2011
Still doesn’t work
Bloody facebook and their changes!
April 18th, 2011 at 18 April, 2011
Thanks Carl This sounds perfect but I can’t get it to work, looks like theyve changed it again
April 18th, 2011 at 18 April, 2011
It doesn’t work to me. Is it the same thing to do as the previous one? Copy/paste on url field then Enter?
Thanks.
April 19th, 2011 at 19 April, 2011
This doesn’t work. The code DOES let you select all your friends, and hit submit. But the “awaiting response” number never goes up. Any other suggestions?
April 19th, 2011 at 19 April, 2011
Dear Carl
It still doesn’t working… Is it possible that they have change it so quickly… Any suggestion please.
I, probably all of us will appreciated.
Thank you
April 20th, 2011 at 20 April, 2011
please come up with a new code to invite all this one dosent work any more man the add process in long
April 20th, 2011 at 20 April, 2011
This works in Firefox, I just tested it:
javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
Again, invite friends, scroll to the bottom of friends, paste this in the url, double click in the url box and voila
April 20th, 2011 at 20 April, 2011
I cant get it to work for me.. Do you know if this code works in Safari?
April 20th, 2011 at 20 April, 2011
that code doesnt work anymore… is there any other way?
April 22nd, 2011 at 22 April, 2011
It does not work for me. Does it work to someone, on what browser if that is the case ?
April 24th, 2011 at 24 April, 2011
just tried above comment #1168 left by Carl Mullen and it was a NO GO…i tried on Firefox and did not work….Does this work with Chrome or ….????
April 25th, 2011 at 25 April, 2011
what about if there is a limit is there a way around this
April 26th, 2011 at 26 April, 2011
i cant seem to get any of these to work either, I’m creating a page for my business and am trying to ‘suggest’ my friends
April 28th, 2011 at 28 April, 2011
Its still not workingggg dammn
May 1st, 2011 at 1 May, 2011
Doesn’t work for shit, tried the process over and over
May 1st, 2011 at 1 May, 2011
that doesnt work either. any new ones?
May 2nd, 2011 at 2 May, 2011
Neither of those codes work, makes me sad
May 2nd, 2011 at 2 May, 2011
@ Carl that code does not work…
May 2nd, 2011 at 2 May, 2011
this doesnt work, i tried it over 5 times, and it doesnt work
May 5th, 2011 at 5 May, 2011
it doesnt work
May 5th, 2011 at 5 May, 2011
hell can’t get that to work ..Any up dates
May 6th, 2011 at 6 May, 2011
oh thanky you lord! you are the best thing i’ve needed all week!
May 8th, 2011 at 8 May, 2011
It doesnt work anymore, does anyone have a new script by anychance?
May 9th, 2011 at 9 May, 2011
yeah, the original don’t work for me, and the solutions by James (#1165) and Carl (#1168) are not working for me in ff4 either.
*sadface*
really shoulda paid more attention when i was learning js.
May 9th, 2011 at 9 May, 2011
this doesnt work anymore. please help
May 10th, 2011 at 10 May, 2011
Why can’t I get this trick to work anymore?
Help!!!!
May 13th, 2011 at 13 May, 2011
This is a great idea however it does not seem to work for me I tried the new code posted by Carl Mullen but it still doesn’t work. Any ideas?