Facebook

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 automating tasks as well as has given rise to Facebook Spam.

Last time we learnt how to add all friends to a Facebook group automatically with a JavaScript. Although these scripts are not new and were discovered long back, we did miss to post about it due to security concerns.

So here we are posting all kinds of Facebook Scripts and for today we are posting updated and optimized JavaScript to send automatic pings to invite all friends to like a page on Facebook.

The Biggest challenge after creating a Facebook page for your brand is to actually acquire likes that have an 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 every friend 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 employ a piece of JavaScript code that will automatically send page invites to all your friends within a few seconds. So let’s get started with it.

JavaScript to invite all friends to like page

[ * ] This tricks only if you are the Admin of the Fan-page.

  1. Copy the JavaScript code given below:
    var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }
  2. Open your Facebook fan-page (Use Chrome Web-Browser). Click Build audience >> Invite Friends (located at the top-right corner of the page)
  3. A new window will open up Which will list all your Friends along with Invite buttons inline with the friend’s name. Just Scroll down till you reach the end of the list or till it stops loading.
    invite all friends on facebook
  4. Now Press F12 Button on your Keyboard to open up developer options.
  5. In the developer options click Console Tab and paste (ctrl+v) the JavaScript code that you copied in the 1st step. Hit Enter key.
    invite all friends to like page
  6. 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.

Related posts:

  1. Fake Facebook profile how to trace
  2. Facebook user location tracker software
  3. How to find out who created a fake Facebook account
  4. Hack Facebook online
  5. How to hack Facebook account
  6. How to find someones IP address from Facebook
  7. Facebook hack tool
  8. Fake login page generator