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 13th, 2011 at 13 March, 2011
I have tried this about 20 different times.
Am I doing something wrong? I can not seem to make this code work??
I have my invites open. In the same browser, I paste the code and then hit enter.
Nothing happens.
I have tried this on 3 different computers. Any suggestions?
I did this on my other FB pages, about 6 months ago and it worked. Now nothing.
Please help,
Thanks,
Scott
March 14th, 2011 at 14 March, 2011
Now friends selection’s procedure is different: I’ve got “check-boxes to check” instead of “areas to select”… So this script doesn’t work anymore for me… O.o
Help pleeeeeease!!!
March 14th, 2011 at 14 March, 2011
I tired it and it showed all my friends highlighted but it didnt send it to all of them. once i refreshed the page it still showed the same amount of friends invited. so please let me know what i can do. thanks
March 14th, 2011 at 14 March, 2011
its nt workin n e more there like a new set out
March 14th, 2011 at 14 March, 2011
just perfect!
you made the stupid work of clicking friend after friend end!!
thank you very much for it
perfect sure
March 15th, 2011 at 15 March, 2011
Is this script not working anymore? I use to use it and now it doesnt seem to work…
March 15th, 2011 at 15 March, 2011
Thanx Greattlyy f tis..
nw no need To “Finger Excersise” by clickng all Friend 1 by 1..
March 16th, 2011 at 16 March, 2011
Facebook has changed the invite system this week so this Java script doesn’t work any more. anyone got a new solution?
March 16th, 2011 at 16 March, 2011
its doesnt work with the new window of the events in facebook. who have other solution to invite all? please help me
March 16th, 2011 at 16 March, 2011
been using this javascript for well over a year now….guess what? it did not work today…looks like FakeBook has changed something again to make our lives more difficult….HELP!!!
March 16th, 2011 at 16 March, 2011
Hi
we have been using this script for ages to invite people to our events.
Today Farcebook changed something and it does not work any more.
:’(
If you get around to making a new script that works after the changes that would make us very happy, because we simply know nothing about scripting.
March 16th, 2011 at 16 March, 2011
I have an updated script here (this does not seem to work any longer):
http://giacobam.blogspot.com/2011/03/inviting-all-your-friends-to-facebook.html
March 16th, 2011 at 16 March, 2011
javascript:elms=document.getElementsByName(‘checkableitems[]‘);var i = 0;for (var el in elms){elms[i].checked = true;i++;}
March 16th, 2011 at 16 March, 2011
Doesnt work anymore =( Facebook changed something
March 16th, 2011 at 16 March, 2011
This did work perfect until FB changed it AGAIN!! Is there an update….I need this bad. Thanks!
March 16th, 2011 at 16 March, 2011
This is a Sad day here in New Jersey. Your java has worked like a champion for me for the last two years.. Facebook has finally been notified or noticed and put a stop to my Monster marketing.. The java no longer works under and servers… I am praying you can come up with another one for their new setup. Since the refuse to make a select all button. Please send it to me first! I will keep it a close secret…
March 16th, 2011 at 16 March, 2011
It is a sad day here in New Jersey.. The secret is out and facebook has put an end to my Monster Marketing… Highly upset about this.. I hope you can create another java to get around whatever they just did, since they refuse to create a select all button. Please make sure you send me a copy of the link when you do! It will be kept a tight secret! You can believe that…
March 17th, 2011 at 17 March, 2011
I tried doing this but it didn’t work when I left-clicked the mouse in the URL field and hit Enter after pasting the snippet on the URL field. Does this only work on Windows? What are the steps for Mac users?
March 17th, 2011 at 17 March, 2011
Ahhhh This nolonger works…please help
March 17th, 2011 at 17 March, 2011
I had success with this code until yesterday. But, isn’t working right now with the code changes. help
March 17th, 2011 at 17 March, 2011
It seems as though facebook has changed and the java script is not working now!
March 18th, 2011 at 18 March, 2011
plsss hellpp , do this link work for you now after facebook update invate page?? for me this script dont work , pls answer?
March 19th, 2011 at 19 March, 2011
This no longer works
We need a new one!
March 19th, 2011 at 19 March, 2011
I am sooo sad to say that this once magical bit of code that was an absolute lifesaver to me because I invite over 2000 friends to events several times a week, NO LONGER WORKS!!! PLEASE PLEASE PLEASE write a new code glorious one!
your humble admirer
March 20th, 2011 at 20 March, 2011
I used this link several times, and it worked very very well.. But something changed on Facebook (at least it looks different now, when you want to invite friends). The link doesn’t work anymore with me! Do more of u have this problem? What to do now? I tried it on several computers, but it’s not working anymore…
March 20th, 2011 at 20 March, 2011
The new code (after facebook’s most recent updates) is on the following page. Just copy and paste it like normal into the URL field box and hit enter.
http://pastebin.com/raw.php?i=sxuwVf2G
MAKE SURE: that you have scrolled all the way down your friend’s list. Otherwise it will only select the first hundred friends or so.
March 20th, 2011 at 20 March, 2011
THIS CODE DOESN”T WORK ANYMOREEEEEE
March 21st, 2011 at 21 March, 2011
Seems facebook has changed again…this link worked for quite a while but now…no dice! Anyone writing new script for the new setup? I really need it please? Thanks!
March 22nd, 2011 at 22 March, 2011
I can’t get this to work anymore…?
March 22nd, 2011 at 22 March, 2011
facebook changed the layout of inviting friends and now the code doesn’t seem to work ;(
any idea how to do it now?
March 22nd, 2011 at 22 March, 2011
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
THIS CODE JUST WORKED FOR ME IN FIREFOX
March 22nd, 2011 at 22 March, 2011
No longer working
March 23rd, 2011 at 23 March, 2011
Now that facebook changed their code it doesn’t work. Anyone have a new script that does?
March 23rd, 2011 at 23 March, 2011
the code not workn no more
March 23rd, 2011 at 23 March, 2011
I HAVE TYRIED THIS MANY TIMES BUT I CANNOT GET IT TO WORK IS THERE ANY WAY YOU CAN EXPLAIN IT TO ME TO MAKE IT WORK PLEASE
CHEERS
March 23rd, 2011 at 23 March, 2011
as of 3/20/11 they change it again, so this does not work, bummers
March 23rd, 2011 at 23 March, 2011
Hey guys!
This does not work anymore with the new thing on Facebook!
javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}
March 24th, 2011 at 24 March, 2011
Hei! this workd for me a few wks ago, but is not working today.. am i just hella lame, or is it no good any longer? :\ thx 4 ur awesumeness! ^O^
March 24th, 2011 at 24 March, 2011
Still working ?
March 24th, 2011 at 24 March, 2011
Now this script doesn’t work with the new facebook. Does anybody now how can i send the events to all contacts????
Cheers.
March 25th, 2011 at 25 March, 2011
think we need a new code
March 26th, 2011 at 26 March, 2011
This looks great, but I cannot get it to work. I am working on a MAC is there some trick I should know.
March 26th, 2011 at 26 March, 2011
Cool Awesome
March 26th, 2011 at 26 March, 2011
HELLO !!!
===> CHECK COMMENT 1126 BY BRENNON ! NEW SCRIPT IS ON THAT SITE Please become a fan of HARMONY DJ-TEAM on facebook
Bart De Bie
March 27th, 2011 at 27 March, 2011
I found on FB page this script. As it was posted there on 23rd March it seems a new one:
javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
Comment by the latest posting: "Scroll to the bottom of the friends list b4 you enter the java script or it only adds a few 100 people. Also the more friends you have the longer it take. Example, I have 1000+ and it takes about 5-7…"
(Original Source: http://on.fb.me/hikb0a )
Actually I give it a try in Google Chrome for more than 2300 friends…
But the browser tab window seems like total passive… dont know if this "new script" is really working… Pls give feedback about your experiences !!!
March 27th, 2011 at 27 March, 2011
http://www.youtube.com/watch?v=9QByBPlxY_4&feature=player_embedded
works with firefox
March 27th, 2011 at 27 March, 2011
yes, the code does not work anymore. facebook rescructured there thing and the code does not work. is there a new code? how do you select everybody now?
March 27th, 2011 at 27 March, 2011
Same problem, FB changed the layout and the script doesn’t work.
March 28th, 2011 at 28 March, 2011
On new facebook doesn’t work
?
March 28th, 2011 at 28 March, 2011
You are a genius. Thank you.