About

WELCOME! Get Latest Tricks n Tips About Computers, Facebook, Internet and Everything Related...

Sunday, February 2, 2014

Code to Invite All Facebook Friends At Once

Facebook friends inviter

This is javascript code to invite all facebook friends for a event/page at once.

Instructions:
1. Click Invite Friends on whatever you are inviting people to
2. In the dropdown next to the search box, make sure Search All Friends or "Search by name" is selected!
3. Scroll ALL the way down until names stop loading (I found it easy to click the first name and then hold down the spacebar or Page Down button)
4. For EVENTS Copy this code:
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()}

For PAGES Copy this code:
javascript:var inputs = document.getElementsByClassName('uiButton _1sm');
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}

5. Past the code into the URL bar of your browser (where you type website addresses), but WAIT! Check the beginning of the URL bar and make sure the word "javascript:" is there, if it is not, TYPE IT IN! A lot of browsers automatically delete the "javascript:" portion. Press enter.
6. For large friends list, this may utilize all your resources and will cause the page to freeze and be unresponsive. Just wait a few minutes until all the names get selected.

please Drop a comment!