Hacker news and computer knowledge

2 Feb 2015

2015 JavaScript to Invite All Your Friends at Once


The ability to run various JavaScripts against Facebook’s interface has really helped in making tasks simple as well as has given rise to Facebook Spam. Last time we sawHow to add all Friends in Facebook Group automatically with a JavaScript. Although these scripts are not new and were discovered long back, we did missed to post about it due Privacy concerns. So here we are posting all kinds of Facebook Scripts and for today we posting updated and optimized JavaScript to send automatic Facebook Fan-page invites to all your friends.
Trick to Send Fan-Page Invites to all Friends:
* ] This tricks only if you are the Admin of the Fan-page.
  1. Copy the JavaScript code given below:
  2. var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }
  3. Open your Facebook fan-page (Use Chrome Web-Browser). Click Build audience >>Invite Friends (located at the top-right corner of the page)
  4. A new window will open up Which will list all your Friends along with Invite buttons inline with the friends name. Just Scroll down till your reach end of the list or till it stops loading.
  5. Facebook trick to invite all friends to fanpage
  6. Now Press F12 Button on your Keyboard to open up developer options.
  7. In the developer options click Console Tab and paste (ctrl+v) the JavaScript code that you copied in the 1st step. Hit Enter key.
  8. console  paste script
  9. Now sit back and relax. The Script will automatically click Invite buttons on behalf of you and within few seconds you will see that you have successfully invited all yourfriends to your Fan-Page.
If you face any problems or have anything to say, just write in as a comment below and will revert back asap.(also see 2015 javascript to add all friends to facebook group)