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:
- Go to your Facebook Event, Facebook Group or Facebook page and click “Invite People”.
- Once the page has loaded you should see all of your friends, but they are not selected.
- At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit “Enter”.
- If all goes well, it selects all of your friends!
- 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, Michael Quale developed a little Chrome plugin which I personally tested and it did the trick. You can get it on the Chrome browser store here. And here is a little video of it working.
Again, that one is only for Chrome users, but I highly recommend that everyone use Chrome anyway…
If you do this, you account will be blocked once you exceed 800 + invite request, incase you have more than 800 friends
Informative. I was looking to increase members in my Facebook group. I hope this will work
Ohh! It’s not working. Is there any other way?
I created a small Facebook app that lets you select a list of friends and invite the whole list to your event. You can check it out at lisvite.com. There is no code to write. Just select your event, your list of friends and go.
Please let me know if anything does not work as expected.
i can’t made it
Great Code. Now i can send all the friends a invite. Thanks
kindly give a javascript code that posts on a facebook group
Assuming you have logged in and have authorization.
This code aren’t valid anymore. Let’s see what chrome can do.
Hey guys I need help
My facebook and yahoo Is look u guys know how to open
Does not currently work in Firefox 12.0.
guess code stopped working for some reason
:( too bad, please let me know if anyone knows about a new one, will do the same myself.
Tried the first, and nothing happened, on the bottom toolbar it said “canceled opening page”, then I tried the second, but once I open the friends window, there is no option to open in a new tab/window, and if I clicked on open in new tab, on the “invite friends” link, it merely opens my entire page again… Do these scripts not work on Macs?
These code work on mac, but if using Google Chrome Version 23.0.1271.101 or later then press Alt, Cmd & J. This will bring up the “Java Script Console” there you can enter the script and press enter.
NOTE: You can also fine the “JavaScript Console” under – View / Developer / “JavaScript Console”
Can anyone help me
my group doesn’t show invite button
it show only add frnd
java script doesn’t work in that
Hey there so…I’m wondering how I can invite all the kids you like my youth group page to an event, I only have so many of them as friends and would like to invite the 200+ that like the page…how would I do that?
Greetings, if i am not mistaken Facebook has changed its way of adding friends to group which is one by one and every time we can add only 20 person.
is there any ways of adding all my 3000 friends at the same time now?
thank you
Thanx a lot for your information from Colombia. Chrome plugin has worked just perfect for me! Thanx a lot!!!
Very Good
I have a question that has been bugging me. My friend has a Facebook page (Alan’s Games Emporium) and when you go onto it you have to press the ‘all’ button to see all post. The first screen only shows admin posts. How can this be removed? We don’t want to press all every time we pull up the page.
it doesnt work for both of your method. it always open in google search. What should i do?
I am looking for new friends and friends for the past some one here?
Very use full
Helping Others , Helping Himself !
– Helping people to unite on the Internet.
– Learn the most , and helping others to consciously move “forward to success.”
– To provide an international mutual assistance and charity.
– Help create wealth for all participants CLUB .
– Be independent and do what we want!
One-time payment for membership in the club $ 40.Each participant gets the total of all one after another,
For a guest referral – $ 10 once you apply.
Exit from the club at any time with a full return on investment ! Donate 2% will be deducted from the awards. We have no qualifications. You do not need to invite . For active job you get is many times more.We have no monthly prepay the club. Our system operates on full automatic . MORE You will not have any monetary losses !
Access to unique products for FREE!
Computer literacy course , site builder , eidetics , and much useful
Presentations every day
PROJECT A VERY SERIOUS ! And brand new !
Do not miss the vozvozhnost !CONNECT TO OUR TEAM NOW !
More information here – F-Best.ORG
Hello.This post was extremely fascinating, especially because I was investigating for thoughts on this issue last Wednesday.
Unfortunately none of the three options worked and i did it exactly as you said, is there any suggestion to getting it to work? thanks so much
I think it is a real great website post. Truly thanks!
It worked in Chrome!! No need to fix the Add on!! Thank you soooo much!
I had done it couple of time with firefox’s greasemonkey plugin and javascript. It takes too much time and sometime, doesnot works properly. so, I would rather doing it as facebook allow
CRAP! Facebook, stops it at 100 now!!! They put a gap between the 100 and the 101 friend so the script stops working! GRRRRR
You erased the one that I used for Firefox and Safari!
Massively helpful! Thank you!
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!!!!!!!!!!
It says thanks for inviting your friends. We’ve let your friends know about your page. Do i have to wait at this time till that window is closed?
it worked perfectly for Firefox 10 but how to do it with chrome??? how to open java script tab in chrome??
Hey there! The new versions of firefox make this a little difficult to perform. So I went and built a Chrome extension that does the deed for you. Just one click on an icon in the tool bar and Wham! all your friends are selected. Works just as well for page invites. Maybe you can update your article with a link. Have a great day!
Get it at MichaelQuale.com
http://michaelquale.com/912019/facebook-invite-all-friends-chrome-extension-2012/
thankssssss so coool it worked for me :)
scroll to the end of your list, be patient for it all to load, then insert the code into the browser field and hit enter
thank u!!!!!!!!!!!!!!
this is not working for me either. i tried it on firefix, tried it on chrome too. what am i doing wrong? i tried both codes uou had updated. on chrome… when i enter the code into the top address bar and click ok, it actually changes page and goes to search for a site.
i dont no what im doing wrong but its not working for me!!! can someone help me please?
Your update has been working perfectly for me for ages now but now facebook is telling me this:
‘You can invite an unlimited number of people to events, but you can only invite 100 people at a time. Once you invite the first 100 people, you can then start inviting more. In addition, you can only have 300 pending invites at one time for an event. Some people will have to respond to your event invite before you will be able to add more.’
Anyone else out there with the same problem? This is killing me!!
Your UPDATE worked for me perfectly, thx !!!
thank you!!!
sebastian eres genio!!! if you have any issues visit sebastian’s link. drag facebook logo to your bookmarks. open facebook invite box and click bookmark. done and done!!
all of the above are no longer working, any new suggestions on how to add all friends at once to a group??? thanks a mil…
Thanks a lot the new link worked :D
keep updating it please :D thanks again
IF YOU USE THE UPDATE LINK AT THE TOP OF THE WEB PAGE, IT WORKS WITH FIREFOX FOR ME BUT ONLY IF INVITE NUMBERS ARE LOW.
javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
Not working! UPDATE javascript code please!!!
This sounds awesome. But this extension is not working now.
works , Thank you :)
Hi! Your code has worked for me in the past but since I’ve updated to the current internet explorer, it gives me message at the bottom saying “internet explorer has modified this page to prevent cross-site scripting.” and my page goes blank. What do I do to stop this from happening? Please, need your help. Thanks!
Working….. Thanks….
here is the new way:
http://claytonhuckle.com/how-to-select-all-friends-on-facebook/
on an event page, you need to open the “invite friend” window.
when it’s open, scroll all the way to the bottom to your last friend.
they will all be “loaded” in the pane now.
then run the script and it should work.
still can’t get it to work on “suggest to friends” on a page though. any ideas? on firefox running on a mac.
I had the same problem as Jennifer. It only selected my A-letter-friends!
Bummer; had to click al my other-letter-friends myself.
Hope the will be fixed soon, cause I like the idea I can do it all by one click :D
It didn’t work for me. >< It only selected my friends through the letter A..
Nice article. Good js knowlage :)
I used the Javascript Injector by Nicholas Workshop extension from Google Chrome, as suggested by Michael Hurley, but his script didn’t work for me.
I used the injector to send the “update” script from John P – this one:
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);}
I am inviting all to an event. It selects about a hundred, you click "Submit", then do it again to select the next hundred (or so… I didn't count).
Better than selecting them all individually!
I couldn’t get any of the scripts i found to work properly – seems to me they weren’t written very well anyway so i came up with this solution…
1) Install the Javascript Injector by Nicholas Workshop extension from Google Chrome
2) Click the “Invite Guests” or “Suggest to Friends” button (which ever one you’re working with)
3) Scroll down to reveal your entire friends list
4) Using the injector – inject the following code:
$(function(){
$(“.checkableListItem input”).click().attr(‘checked’, ‘checked’);
$(‘.checkableListItem’).addClass(‘selectedCheckable’);
});
i tried it without the “.attr(‘checked’, ‘checked’);” and without “$(‘.checkableListItem’).addClass(‘selectedCheckable’);” but facebook realized it was a programatic click and returned 0 invites also tried it without the “.click()” no dice there either, so this is the work around that selected everyone I’m connected with… hopefully it works for you to =)
Michael,
This sounds awesome, unfortunately I can’t duplicate it with the “Suggest to Friends” function. I just tried pulling up a page and doing the suggestion, but nothing gets selected. Could you just verify the code for us once more?
Thanks,
John P.
u kno i tried it soo many times i have more than 4000 , but no reaction , i found alot of javascript codes but not workin for me ! please update the post , coz everytime iam lookin via google i found ur code :(
Hi there
the idea is genius. i just tried it and waited for half an hour, but no reaction… i used opera as a browser…if there is a new solution please take me up into ur newsletter!
Thanks and keep up the good work!
CJ
Facebook changed the Event Invitation Layout again. Do you have a new javascript code for inviting all of your friends to an event again? I haven’t found any new options. I used to use to the initial published javascript code, then I installed the ‘Facebook Invite All’ chrome extension in my chrome browser which made things really easy.
Now they changed things up again and we need a new way to invite everyone to an event. I’ve looked all over, but am having trouble finding a solution! If you know the new way, please share!
Thanks,
Chris Mahlmann
http://twitter.com/GOchris
Nice article i like it mannnnnnn
This was very interesting and helpful. Now I can invite all my friends to my nigger lynching group and take of the world.
White Power!
Go BYU
The last one worked great for me and super fast! Thanks, that is always such a pain, Facebook should fix that feature.
Interesting article! and nice hack! I don’t even have 1,400 friends nor would I want to invite more than 5 people to any event I host. :) I can see how this could be extremely useful for marketing purposes and inviting all your fans or friends to view a certain page. I will give it a try sometime! Thanks Again!
First of all: Juan, THANK you.
@James: it’s so simple to implement! Visit the page Juan linked, don’t worry that it’s all in Spanish. After the 3rd paragraph there’s an image of the Facebook logo. Click and drag this to your bookmarks bar. It should appear on your bookmarks as “FB – Todos”.
Next, go to Facebook. Create an event/group/whatever, or go to an existing event and click invite friends. Now wait until the pop-up appears and simply click your FB – Todos bookmark! Watch as all the selection boxes are magically ticked for you! Now just confirm the invites to be sent and you’re done.
I don’t quite understand how you implement Juan’s code. Please can someone explain clearly? The other codes you just click invite friends then paste the code into the address bar and hit enter, which highlights all your friends. Then you click invite. But I guess this is not the case with Juan’s.
Juan, dude, buddy, i went through all the solutions, and finally, after trying so many that didn’t work, yours did!
as Ben in comment 452 said, FB doesn’t realize that when they change something like this, if effects people who really rely on their customized and curated groups and lists to get their info, events, causes, etc out there to the network they’ve spent plenty of time and energy creating.
Thanks again Juan, you’re the MANG, macho muchacho.
xx Glen Naan-Stop
We have been maintaining 5000 (FB limit) friends for over a year now, slowly and painfully moving everyone to a “fan” page we created last year. I still get around 20 requests a day, and Facebook makes it extremely challenging to keep up with everyone, even with our bi-weekly newsletter. This article SAVED us on a show we produced, thinking we would be able to just invite everyone to it, after deciding not to spend extra money on radio campaigns. It seems that they have removed the “Add all” to the group invites, and we weren’t aware of this until the last minute. Thank you SOO much for keeping this article up to date. I don’t think that Facebook realizes they aren’t just messing with peoples “hobby’s” or “spare time” with their services, but they are effecting peoples business’s/livelihoods/incomes by having us depend on their services.
Juan Sebastián Echeverry is a king! Your code is amazing
YES YES YES YES YES!!!! Thank You JUAN!!!
what u have to do is…..
go to invite friends.
scroll down till it shows all ur friends.
put this code in the title bar.
javascript:javascript:var elms=document.getElementsByName(“checkableitems[]”);for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}
voila
like my page! http://www.facebook.com/illbreed
None of the javavscript here works, not even the one by Marco in comment 440.
Has something changed in facebook? Does anyone have an updated one?
Hi i have been trying to add my friends to the group but it is not working. Please help
the 2 new jave script are not work for me I have over 2000 friend and ideas
Thanks for the script Juan!!!!
I have created a script to select all users in a FB contact list. You don’t have to scroll to the end because the script scrolls it while there are more users to check, and it is resource savvy so you can browse Facebook in other tab/window while the title of the window where the process is running would change to display what is the script doing. Is bigger than the usual ‘ select-all-FB-contacts’ scripts, but is helpful when you have a big list. I have tested it with 2000 contacts and it takes 25-30 minutes to finish.
If you want to test it, just visit this page http://www.sebaxtian.com/archives/1041 (in spanish) and drag the Facebook image (in middle of the post) to your bookmarks, then go to a Facebook contact list and press the bookmark entitled ‘Fb – Todos’ (‘todos’ mean ‘all’ in spanish). Remember, you don’t have to scroll to the end, because the script would scroll for you.
It takes more time than other scripts when processing short lists, but for big lists I love how it works.
Juan – you ROCK. Muchos.
Tried all of this on Firefox for Mac. Doesn’t seem to be working. Once I enter the javascript and hit enter, nothing happens. Do I wait any way?