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
September 17th, 2010 at 17 September, 2010
doesn’t seem to be working anymore =\ it works the first time around like on events, but if i try using it on my page where i already have some friends that are added it doesn’t work ;__; maybe its due to a shitty fb update =\
September 17th, 2010 at 17 September, 2010
yup! I agree with everyone else! This saved my day! Thanks so much!
September 18th, 2010 at 18 September, 2010
not working for me anymore either
neither chrome nor firefox
September 19th, 2010 at 19 September, 2010
there’s another one that is shorter, it is: javascript:fs.select_all();
September 20th, 2010 at 20 September, 2010
I LOVE YOU!
September 20th, 2010 at 20 September, 2010
Doesn’t work any more?!
September 20th, 2010 at 20 September, 2010
THANK YOU
!!! This is incredible.
September 21st, 2010 at 21 September, 2010
Do you have new codes? coz now it does not work… pls assist
September 21st, 2010 at 21 September, 2010
Doesn’t work anymore. I used this code MANY times and starting today it will NOT work. Can someone verify?
September 21st, 2010 at 21 September, 2010
OMFG. I LOVE YOU.
September 23rd, 2010 at 23 September, 2010
This is awesome! What I really would like to figure out is how to send a message to those who have indicated that they “Maybe Attending”. Any suggestions would be greatly appreciated.
September 23rd, 2010 at 23 September, 2010
I am so glad one of us payed attention in school! I would by a J if I could!!!!
September 24th, 2010 at 24 September, 2010
yea this isn’t working like it used to, usually you cut and paste javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
into the address bar, hit Enter, and Firefox freezes for like however long, 5000 friends takes it about 20 minutes on my computer and it is a CPU intensive process believe it or not. So I can actually monitor the progress with Windows CPU monitor; once the process is complete the CPU usage goes back down to minimal.
Anyway, ever since about last week, this just is not happening anymore, Firefox no longer freezes up, the CPU does nothing, so I’m assuming Facebook patched up this loophole, much to all of our shagrins.
Bottom line, we wouldn’t even be having this discussion if they just have a “SELECT ALL” link when you suggest friends to pages and events, they could easily do it, it will create more page views for them, but I do see how it could tie up resources on their end.
Sucks, but I have come to conclusion this no longer works…
Good Day.
September 25th, 2010 at 25 September, 2010
Very useful, thank you very very much !
September 25th, 2010 at 25 September, 2010
It’s not working anymore.
September 25th, 2010 at 25 September, 2010
I have no words….actually I have one…AMAZING!!!!! thank you
September 26th, 2010 at 26 September, 2010
Is there no way to modify the host of an event so that invitations to members don’t appear to be coming from the admin, personally? I’d like it so that the email invite is made by the Groupname.
TIA
September 26th, 2010 at 26 September, 2010
Fucking briliant!
Someone give this guy a statue please, this saves me about one hour clicking friends per event!
September 28th, 2010 at 28 September, 2010
Hey man… I think FB updated on this javascript…. it doesn’t work anymore!!! ahhhhhhh! please write me back if you come up with a new idea for the one click “select all” button
September 29th, 2010 at 29 September, 2010
Ive been using this for a couple of days inviting people to the parties i promote but today its not working is it still good and facebook is just being dumb or what?
September 29th, 2010 at 29 September, 2010
nvm
September 29th, 2010 at 29 September, 2010
10x
September 29th, 2010 at 29 September, 2010
it wasnt working then it was working as of today. it must be something that we all have to do. i just logged out and logged back in and it worked. i wish you had a code that selects all the friends in on swoop, not just the first 9. any one else feel the same way?
September 30th, 2010 at 30 September, 2010
It works for events, but it won’t work when u try to suggest friends to your fan page! its there one for that?
October 1st, 2010 at 1 October, 2010
this jave code is not working any more, please update new one
October 2nd, 2010 at 2 October, 2010
I can’t Thank you enough for this very useful information!! You are on my top list Sir!!
BIG TIME!
Massive respect and Kind Regards!! Oh and by the way it worked for me
October 2nd, 2010 at 2 October, 2010
YOU ARE A GENIUS GOD!!!!!!!!!!!!!!!!!!!!! THANKYOUUUUUUUUUUUU I LOVE THISSSSSSSSSSSSS!!!!!!!!!!!!! WOW!!!!!!!!!
October 4th, 2010 at 4 October, 2010
this script no longer seems to work… is there a new script or option?
October 5th, 2010 at 5 October, 2010
I used this once and it was great. Now I’ve just tried a 100 times and it bounces back to a facebook url
October 6th, 2010 at 6 October, 2010
I manage a page with a few thousand members, when I use this the Firefox, and Chrome go to Not Responding.. i think my computer isnt powerful enough to handle the mass invite all at once, is there anyway to send out invite 200 at a time?
October 6th, 2010 at 6 October, 2010
thank you!!!!!
October 6th, 2010 at 6 October, 2010
invite friends
October 6th, 2010 at 6 October, 2010
it isn’t workingggggggggggggg anymore
October 7th, 2010 at 7 October, 2010
Great one thanks. I was so so so tired of clicking one by one. Now with this code I can invite them all in one go and done!
Great findings.
Thanks.
October 7th, 2010 at 7 October, 2010
You just made my life very easy! I am waiting for FB to create the INVITE all button! In the meantime, you have saved me a lot of “clicking” time! Thank You!
October 8th, 2010 at 8 October, 2010
Is it possible that this no longer works? I’ve used this before and was madly in love with it, but today it has no effect. Anyone else?
October 9th, 2010 at 9 October, 2010
It still works (directed whoever said it stopped working)
I just used it today, as easy as always.
October 9th, 2010 at 9 October, 2010
“I came up with this small piece of Javascript”.
Sorry to say, but the code is initially written by my friend long before your post. It´s not ok for fb to use this and it´s already been blocked in some browsers. I love it!
October 9th, 2010 at 9 October, 2010
awesome
October 10th, 2010 at 10 October, 2010
Works just fine.
October 11th, 2010 at 11 October, 2010
WHAAAAAAAAAAAAAT!!! YOU’RE GENIUS!
October 11th, 2010 at 11 October, 2010
AWESOME!!!! Thanks so much man for posting this! I will def use this shortcut all the time!!!
October 13th, 2010 at 13 October, 2010
No longer working.
October 14th, 2010 at 14 October, 2010
OMG, thank you SOO MUCH!!
You are such a genious!
October 20th, 2010 at 20 October, 2010
Whoever you are…thank you so much!
October 20th, 2010 at 20 October, 2010
l want you;s as friends to join my house you will have lots of fun so all my friends come and join me you won;t be sorry
October 21st, 2010 at 21 October, 2010
hey guys this works, but you need to do it several times because even after pressing send, facebook invite only 50 of your friends.. so do it several times till you invite all of them.
Thanks
October 21st, 2010 at 21 October, 2010
AWESOOOOOOMMMEEEEEE. .. .
October 21st, 2010 at 21 October, 2010
This doesn’t work for me at all. I’ve tried it on a group page, a fan page and an event page…nada.
October 25th, 2010 at 25 October, 2010
holy !@#$ it actually worked — THANK YOU SO MUCH *sends good karma your way*