How to select all your facebook friends with java script code at once..??

When i have to invite all my friends to any facebook group,fan page and event,it was very difficult for me to select hundreds of people.I have to select one by one 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:

Go to your Event, Group or page and click “Invite People”.
Once the page has loaded you should see all of your friends, but they are not selected.
At this point, copy and paste this javascript code:
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var
fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}} into your Web browser’s address bar, then hit “Enter”.
If all goes well, it selects all of your friends!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...