Join us on Facebook

Please wait..10 Seconds Cancel

8.11.2013

// // Leave a Comment

How to select all friends at once to invite friends on Facebook

How to select all friends at once to invite friends on Facebook

Facebook invites are useful to invite your friends to view your website or to like your new Facebook page, you will see friends invite almost everywhere in Facebook.  
Facebook invites are useful but a sometimes a hard job if you have large number of friends like me, i have 2525 friends on Facebook and thus it was very difficult for me to invite friends one by one.

When i started learning JavaScript, i came to know that we can easily select all check boxes by making a small JavaScript command line. 

But before we start, make sure you are using Google Chrome or Firefox, they are good and major browsers, so using them makes sure that it will not create any problems. I will explain it in step by step procedures.

  1. Open Google Chrome 
  2. Now open any event etc. where you can invite your friends
  3. Now scroll down until all your friends appears in the box
  4. Press CTRL+SHIFT+J (for Chrome), CTRL+SHIFT+K (for FireFox) 
  5. A window will open in bottom or top of the browser
  6. Paste this line of JavaScript code in the console
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};

After pasting click enter, now wait for a minute and and when all friends are selected click on send, if you have large number of friends it may take about 1 - 2 minutes for successfully sending the invites .

0 comments:

Post a Comment