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
May 15th, 2011 at 15 May, 2011
theres a new code, basically you pull up the box to invite everyone, scroll to the last friends in the list (X,Y,Z etc..) and then put this code in the address bar and press enter.. javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
wait for them all to become selected,should take about a minute or so depending on what browser you use… then press send: well easy
May 16th, 2011 at 16 May, 2011
it does not work any more?
May 17th, 2011 at 17 May, 2011
This code is not working i think facebook change their system..
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
May 20th, 2011 at 20 May, 2011
code doesn’t work… facebook updated its shit
May 24th, 2011 at 24 May, 2011
As far as I can see, this doesn’t work…
May 24th, 2011 at 24 May, 2011
Fuck it
im installing Google Chrome
May 26th, 2011 at 26 May, 2011
Hi.
the new code doesn’t work…
May 26th, 2011 at 26 May, 2011
Correction, it doesn’t work in chrome but in firefox it does…
May 26th, 2011 at 26 May, 2011
it does not work for me. am i doing something wrong. tohing happens after i paste the code
May 27th, 2011 at 27 May, 2011
Beautiful! At first it looked like it wouldn’t work on my MacBook, but after a few tries, it worked like magic. I used this: javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
June 2nd, 2011 at 2 June, 2011
Hi guys,
I found this new code on a french site. OK for me.
http://www.pme-it.info/astuces/inviter-tous-ses-amis-facebook-en-1-clic-maj-avril-2011/
June 4th, 2011 at 4 June, 2011
It’s not working anymore…
June 5th, 2011 at 5 June, 2011
I used this for a long time but now im getting a page that says object at the top??? please help
June 7th, 2011 at 7 June, 2011
This doesn’t work at all
June 7th, 2011 at 7 June, 2011
Not sure this works anymore. Damn you facebook!!
June 21st, 2011 at 21 June, 2011
It works for me but I have only 9 friends so I didn’t enjoy it…
June 22nd, 2011 at 22 June, 2011
How do you add all your friends to a group? You have to type a letter of there name 1st. Please help and can only add 15 or so at a time…
June 23rd, 2011 at 23 June, 2011
I can’t get this to work please help
June 24th, 2011 at 24 June, 2011
I found this everyone!! It worked for me! Just make sure to scroll all the way down your friend box and have patience… even if you get an error message (“this window has become unresponsive”…). Just wait and soon all of your buddies are selected! Woo hoo!
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);}
July 3rd, 2011 at 3 July, 2011
A reply to :
Comment by Carl Mullen
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
——————————————–
it says this on internet explorer
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)
Timestamp: Sun, 3 Jul 2011 01:33:21 UTC
Message: Invalid character
Line: 1
Char: 48
Code: 0
URI: http://www.facebook.com/event.php?eid=204048519630371
July 7th, 2011 at 7 July, 2011
This doesn’t work
July 9th, 2011 at 9 July, 2011
You have to change between ” to ‘
javascript:var elms=document.getElementsByName(‘checkableitems[]‘);for(var count=0;count<elms.length;count++){var t = setTimeout('elms['+count+'].click()',100)}
Here worked.
See yaa
July 9th, 2011 at 9 July, 2011
He dosn’t work!
July 11th, 2011 at 11 July, 2011
No Go. Facebook changed again
July 16th, 2011 at 16 July, 2011
Hi there,
Thanks to Facebook’s latest round of changes I’m finding it difficult to invite people who are only on Categories I’ve set up. I have set up approx. 15 different categories (and am unable to reduce it any). Now when I go to ‘suggest friends to invite’ it lists each of the Cities that are popular within my page and then a random selection of 7 categories and I’m unable to get to the other 8 categories. Please help! These categories have been so useful!
Thank you!
July 18th, 2011 at 18 July, 2011
it didn’t work
July 18th, 2011 at 18 July, 2011
It doesnt work!!!!!!! Ive tried it in IE Chrome and Firefox and it doesnt work!!
July 19th, 2011 at 19 July, 2011
thanks man. but i tried to invite friends to my page but its not workin. is it for events alone. pliz help
July 25th, 2011 at 25 July, 2011
javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){elms[count].checked = true;}
July 26th, 2011 at 26 July, 2011
Hi there, so I created a list, but it took about 2 hours to only collect half of the 1300 names. Also how do I use this list on the event invite, or when you have the list open how to combine it with the event?
July 26th, 2011 at 26 July, 2011
hey hurry join facebook
July 31st, 2011 at 31 July, 2011
i freakin love you for ever! =) lol
really though, that just saved me like hours of clicking, and possibly kept me from ever getting carpal tunnel =)
August 2nd, 2011 at 2 August, 2011
Iam lookin 4 my bro saun narimbi.ta frm wesley
August 2nd, 2011 at 2 August, 2011
it wont let me go to the url and left click and hit enter it wont let me helppp
August 2nd, 2011 at 2 August, 2011
how come it won’t let me go to the url and left click and hit enter it won’t let me helppp plz
August 2nd, 2011 at 2 August, 2011
it wont work and i even tried a couple of times
August 3rd, 2011 at 3 August, 2011
please help,… I tried using this code and it doesn’t want to work for me
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
I have 7100 fans I need to invite to an event… Thank you so much.
August 18th, 2011 at 18 August, 2011
Hi All..
I tried this.. and i really cant make it work.. tried it several times and had all my friends load first and so on..
I have a band and there are more than 600 fans that i write to and invite to when ever we play.. any easier way than clicking 600 times ?
Danni
August 24th, 2011 at 24 August, 2011
Does this still work? Do you put the code where it says search all friends?
August 31st, 2011 at 31 August, 2011
use this extension,perfect for all
select all friend
in google chrome
https://chrome.google.com/webstore/detail/npnaoebelpbmmcdoboinnphhoakdnaah?hc=search&hcp=ext
August 31st, 2011 at 31 August, 2011
looks like facebook have patched it again, anyone know of a new code?
September 4th, 2011 at 4 September, 2011
This doesn’t work. All it does is search for:
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]“);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
With automatic URL bar searching now all that happens when I put in the code is I search and find this page.
September 10th, 2011 at 10 September, 2011
does not work any more !!
September 18th, 2011 at 18 September, 2011
i like facebook
September 23rd, 2011 at 23 September, 2011
“IE has modified this page to prevent cross-scripting”
??
October 4th, 2011 at 4 October, 2011
Hi does this work for when you want to tag all your friends in a video?
October 5th, 2011 at 5 October, 2011
ITS NOT WORKING FOR ME WHY:(
October 6th, 2011 at 6 October, 2011
Hi everyone,
I Just found this site.
I appreciate how all of you have shared these codes.
Today after a long time I am trying but none of these codes are working.
Can anyone help, I am a MAC user.
Thank you!
October 14th, 2011 at 14 October, 2011
hey whats going on none of these codes are working. what happen to the old code that use to work
October 19th, 2011 at 19 October, 2011
I have tried these codes now a multiple of times!
Does anybody know why they do not work??
CAN ANYBODY HELP ME PLEASE?
thank you!