Friday, January 27, 2012

How To Select All Friends On Facebook

Are you trying to invite all your friends on facebook to your event? Have troubles trying to find that invite all friends button? Well, you're stuck in a big hole on that one, because there isn't such button anymore.

There's a step however. Let me show you how. This also works for any other types of invites on facebook.

First, logon to your facebook account using Mozilla Firefox. Yes only Firefox (there are other ways if you're gonna use explorer or chrome, but this tutorial is just for firefox for now).

Then click on the event that you want to invite your friends to.

Hit, yes simultaneously SHIFT + CTRL + K on your keyboard. This will open up a box as shown on the picture below.

Next, click the Invite Friends button. Select “Search all friends” and scroll down (scroll to the very end of the list), so all your friends are loaded.

Finally paste the following codes on the space shown on the picture:

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

NOTE: If the code above does not work, use the following (as of 16 July 2012):
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};

Hit enter. Depending on the speed of the connection and the amount of friedns you have, this may take a few minutes.

The code works when I last tried it 27th January 2012.



No comments:

Post a Comment