Facebook - Javascript to inivite all my friends

April 2018


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 



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.
Published by aakai1056. Latest update on November 15, 2011 at 09:52 AM by aakai1056.
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 (https://ccm.net/).
Facebook - Profile picture missing
SPAM/Virus on Facebook