John Sampson RSS

Archive

Mar
15th
Tue
permalink

Facebook Invite Friends to Events - Javascript Solution

Here’s a solution to the Facebook updates as of March 2011 to “Invite all your Friends to Events”.  Not the best case scenario, but it works.

Keep in mind:

  1. Scroll to the bottom of your friends list first in the popup window first.
  2. Put the code below in the address bar of your browser and hit enter/return.
  3. Click “Save & Close” only once all the checkboxes have been checked.
  4. It may take Facebook quite a while to send out all invites - patience is required and this only need be done once.

THE CODE:

javascript:elms=document.getElementById(‘pop_content’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’ && elms[fid].childNodes[0] != undefined && elms[fid].childNodes[0].type != undefined && elms[fid].childNodes[0].type == “checkbox”){elms[fid].childNodes[0].click();}}