Code to Invite all Friends on Facebook Page in One Click

0

Facebook pages are one of the best ways of building a niche audience. Just creating a facebook page is not enough, we also need a good amount of likes. Getting likes on your facebook page is definitely not an easy task. One of the most official ways to do this is by inviting your Facebook friends to like your page. Well inviting all your Facebook friends to like your facebook page is a huge task especially when you have thousands of friends. No, you just can’t click the invite button manually thousands of times.

So to simplify this process we can use a javascript. All browsers allow us to run javascript code on each and every website, actually. This concept was introduced for web developers in order to debug their websites. So there is a simple javascript’s code that automatically click the invite button every time. So this method is really a lifesaver for people who have thousands of friends.

So just follow the simple guide given below to invite all friends to your Facebook page.
Code to Invite all Friends on Facebook

How to Invite all your Friends on Facebook Page in Single Click

  • First of all Login to your Facebook account and navigate to your Facebook Page where you want to invite friends. Make sure you use facebook as normal user.
  • If you are the admin of the page then you can click on the “Build Audience” tab and then click on Invite Friends.

         Code to Invite all Friends on Facebook Page in One Click

  • If you’re not the admin then click on the “More Options” button next to the message and then select Invite Friends.

Code to Invite all Friends on Facebook Page in One Click

  • Now scroll down until all of your friends get listed in it.
  • If you are a chrome user then hit Ctrl+Shift+J to open the developer console and if you are a Firefox user then hit Ctrl+Shift+K to open the developer console.
  • Copy the code given below and paste it in the developer console and hit enter. 

var inputs = document.getElementsByClassName(‘uiButton _1sm’); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }

code to invite all friends on facebook page

  • Facebook might show you some warning regarding self XSS but don’t worry this code is safe to use.
  • Now it will automatically start inviting all your friends to like your page, so just wait some time until the process gets completed. It may take up to two minutes.

          Code to Invite all Friends on Facebook Page in One Click


Watch video tutorial on how to invite all friends to like a facebook page

Simple isn’t it? Do share this article with your friends who still manually invite all friends to like their facebook page.

LEAVE A REPLY

Please enter your comment!
Please enter your name here