How to Invite ALL Facebook Friends to a Group, Event or Page

1. Go to your Facebook event, group or page and click "Invite People"
2. Once the page as loaded you should see all of your friends, but they are not selected.
3. At this point, copy and paste the JavaScript code below to the Address Bar and hit Enter.
4. If all goes well, it selects all of your friends. 
Important: You must wait. If you have a lot of Facebook friends, you have to leave that window open for a long time. so it sends all of the invitations. I have about 1200 Facebook friends and it takes about 2 minutes to select all of my friends. The invite window will close when its done. So, practice patience!!! 


(In Sinhalese)
ඔයාගේ fb page එකට ගිහින් "Invite People" click කරන්න. page එක සම්පුර්ණයෙන්ම load උනාම ඔක්කොම යාලුවන්ව පේනවා. එතකොට මේ යටින් තියෙන Java Script එක Address Bar එකට paste කරලා Enter ඔබන්න. වැඩේ හරියට උනානම් හැම friend කෙනෙක්වම එක පාර select වෙයි. එත් ඔයාගේ friendsලා ගාන ටිකක් වැඩි නම් මේ වැඩේ වෙන්න යිකක්‌ වෙලාව යයි. ඒ නිසා ටිකක් ඉවසීම පුරුදු වෙන්න ;) 

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

Update
If that is not working for you, try the following.

javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName('input');for(var i=0;i<c.length;i++){if(c[i].type=='checkbox'){c[i].click();}}}check_all_in_document(window.document);for(var j=0;j<window.frames.length;j++){check_all_in_document(window.frames[j].document);}
මටනම් මේක කරන්න පුළුවන් උනේ Firefox Browser එකෙන් විතරයි. පලවෙනි JavaScript එක වැඩ කලේ නැත්නම් දෙවෙනි එක try කරලා බලන්න. ඒක update එකක්. :) සුභ පැතුම්....

Comments