I want to be able to invite all my friends to a Facebook event in one go.
March 31, 2011 4:46 PM   Subscribe

So, Facebook won't let me invite all my friends at once to an event I created. Instead, I have to manually click on all my friends, one at a time, to invite them. I used to use this very useful code as a workaround. But about 2 weeks ago, Facebook changed it all again, so the code doesn't work anymore. Does anyone have a new workaround? Or, can codemonkeys take a look at the code to see if there's any minor tweaks that can be made to make it work again? Thanks in advance.

What I used to do is this:
1. Create the event.
2. Click on the button "Select guests to invite".
3. Paste that code into my browser URL address bar.
4. Press return.
5. Wait while the little spinning hourglass told me that it was processing.
6. Once all my friends were highlighted, I would write a little personal message inviting them to the event and then send the invites off.
posted by Sully to Computers & Internet (7 answers total) 3 users marked this as a favorite
 
Yeah, I just ran into this. Here's a hack I found on a Facebook discussion forum, and it works--a lot quicker in Firefox than in Chrome, where the page hung up until I had to kill it.

When you do the invite, select invite guests. You have to make sure ALL of your guests are loaded up. So scroll down all the way down to the end of your guest list . When they are all there, you need to copy and paste this into your url address bar at the top and then hit enter... javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName('input');for(var i=0;i
posted by Scram at 6:13 PM on March 31, 2011


Best answer: The javascript above is incomplete. Go here for the original forum page.
posted by axiom at 6:26 PM on March 31, 2011


Response by poster: Scram,

That doesn't work for me. I followed the instructions exactly. I am on Firefox. Is that the exact thing to copy and paste? Can you link to the facebook discussion forum page? Many thanks in advance.
posted by Sully at 6:26 PM on March 31, 2011


Response by poster: Thanks to you both!

I started poking around and found this page:
http://www.facebook.com/topic.php?uid=2344061033&topic=19854#topic_top

If you select invite, then SCROLL DOWN to load up all your friends, then PASTE this script in the URL:

javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i
all your friends will be loaded, and then you can invite them all. Whew! Every time Facebook changes something, we all have to adapt. Crazy. Thanks again to you both!

posted by Sully at 6:41 PM on March 31, 2011


Best answer: Hmm, that last post cut off the URL the same way it did for someone else earlier. Let's try that again.

javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
posted by Sully at 6:43 PM on March 31, 2011 [1 favorite]


Thank you so much. I was going to ask a similar quesiton
posted by Lovecraft In Brooklyn at 11:29 PM on March 31, 2011


Just tried it, and it worked. Thanks for saving my birthday!
posted by Lovecraft In Brooklyn at 8:48 PM on April 7, 2011


« Older special lightbulb sought   |   weirdness at work Newer »
This thread is closed to new comments.