Sunday, March 10, 2013

Invite all your Facebook Friends

I thought this script was clever.   I rarely want to invite all my friends to anything.  But this script works.

I set up a couple of groups on Facebook 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 system by inserting a little javascript to make it happen! Here is how to do it:

  1. Go to your Event, Group or page and click “Invite People”.
  2. Once the page has loaded you should see all of your friends, but they are not selected.
  3. At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit “Enter”.
  4. If all goes well, it selects all of your friends!

javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}

I tried it on a Fan Page.  I selected "Suggest To Friends" - and  a popup window appeared and loaded avatars of all my friends.  I just dropped this script into the url address window and hit return and it selected everyone.   It doesnt actually send the invite - you still have to do that.  So I think its safe to try it and back out.

No comments: