Your birthday is coming up (in 4 months). Naturally, you create an event on Facebook and start sending numerous invites to your friends to RSVP. Problem is, you have over a thousand friends. Bummer, right?
What do you do? You want to invite everyone you know on Facebook to come to your magnificent birthday extravaganza. Yes, even that creepy kid from high school you haven’t spoken to in ten years.
Luckily, there is a way to instantly select all your friends when sending invitations on Facebook. A simple piece of javascript will solve the problem:
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
Copy and paste the above javascript code to the address bar when the invite pop-up box is open. Then, hit enter and all your friends will be instantly selected.
Does this work with Facebook pages and groups? Yes, but it requires one extra step. You need to right-click anywhere on the invite box and select the option Open Frame in New Tab.
If the code above doesn’t work, try using the following instead:
javascript: fs.select_all()
Note: It is probably in your best interest to not invite every one of your friends because you might be labeled as an invite whore and also, the only people who want to attend you birthday party is that creepy kid from high school you haven’t spoken to in ten years. Just saying.
Note redux: Do you realize that since Facebook is constantly updating their website, the code may no longer work. In that case, please let me know if the technique doesn’t work for you and I’ll try my best to figure out an alternative solution.
Hi Tony,
The “Open Frame in New Tab” + “javascript: fs.select_all()” doesn’t work. Facebook says invites sent. But none of my friends received any…
Cheers for your post, though. Thumbs up!
-Felix
2 years ago
Wait, so how do you know that none of your friends received an invite? Also, is this for a Facebook event, page, or group?
2 years ago
hey tony,
i had same problem.. i know its not working becuase i sent a link to my friends and they never got it.. but yet face book says i sent it
2 years ago
Thanks for the quick answer. It was for a page. and i know because a) none of the friends were greyed out afterwards b) i asked my friends.
cheers
2 years ago
Your friends will only be greyed out in the invite box if they are already fans of the page. If you try to send another invite, Facebook will say that it was already sent before.
2 years ago
Yeah, but when I send it again Facebook doesn’t complain. And as greg wrote: none of my friends got it. Maybe it’s because FB is changing the page layout? It seems like I can’t invite anyone at the moment – even without the script. Anyone else experiencing the same problem?
Strange…
2 years ago
This code no longer works after Facebook updated their event page format
2 years ago
Here we go again…
2 years ago
javascript: fs.select_all() the codes do not work any more please find a new code please
2 years ago
Tony when you do figure this out please update it as soon as you do. I am just starting my FB campaign now and would love to streamline it.
oh and Like my page please, search: Sex Sells Inc. Clothing on FB > (didn’t want to post a link here)
2 years ago
Hi Tony!
The main issue is that in case of pages you cannot open the frame in new window. What to do with this? Any idea? It would be awesome
2 years ago
The new facebook – when you open the invite friends/guests – when you right click to open in a new tab it opens the event, not the friends list. I tried this in IE, FireFox and Chrome – all do the same thing. They do not open the friends page so you can add that javascript in the url and select all.
Any suggestions?
1 year ago
This code no longer works after Facebook updated their event page format plz help me
My Website is Webslambook
1 year ago
I’m having the same issue as JM and Don & at. It opens the event page. Update this shit please if your going to have it out there on google
1 year ago
I agree with not inviting everyone. Hire someone at home to click for you, while you eating pop corn and monitor the things going on.
1 year ago
Yeah, but when I send it again Facebook doesn’t complain. And as greg wrote: none of my friends got it. Maybe it’s because FB is changing the page layout? It seems like I can’t invite anyone at the moment – even without the script. Anyone else experiencing the same problem?
12 months ago