Working JavaScript to Send Automatic Facebook Fan-Page Invites to all Friends

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 saw How 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.

The Biggest challenge after creating Facebook Fan-Page for your brand is to actually acquire Fans (Likes) that have interest in your brand or build your Brand interest among people. While to build this audience Facebook provides advertising schemes, these schemes might cost a lot. The easiest way to get fans that all the Admins or Social media service providers follow is to just Invite your own friends. Yes you can do this, but you have to send invites to your each friends individually by clicking Invite button for each.

And this is where it becomes difficult and boring to click Invite Buttons all the way down until you reach your last friend on the List. To make this task easier, we will employe a piece of JavaScript code that will automatically send Fan-page invites to all your friends within few seconds. So lets get started with it. Before that please also check our Social Media Tips for outstanding Facebook Page.

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 your friends 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.

  • SHARE