Thursday, July 21, 2011

How to Select All Friends on Facebook to Invite to Your Event, Page, or Group

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.


hacksocialmedia..

No comments:

Post a Comment

Custom Search
Powered By Blogger