Facebook - Javascript to inivite all my friends

December 2016





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.

Related :

This document entitled « Facebook - Javascript to inivite all my friends » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.