0
Thanks

A few words of thanks would be greatly appreciated.

Facebook - Javascript to inivite all my friends





Issue[


I'm trying to use this script to invite all my friends at the same time, but the code doesn't work?
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.cl 

javascript:fs.select_all() 

Solution


Try this:
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type=="checkbox")elms[i].click()}; 


Note that: You must expand your contact list.
  • It seems that the invitations are sent only if the number of invitations does not exceed 200.
  • Tested on Chrome, Firefox & Safari.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Related

This document, titled « Facebook - Javascript to inivite all my friends », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments