The ability to run various JavaScripts against Facebook’s interface has really helped in automating tasks as well as giving rise to Facebook Spam.
Last time, we posted a tutorial on how you can add all your friends to a Facebook group using JavaScript. Although these scripts are not new and were discovered long ago, we did miss posting 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 brand’s 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 tr 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
Note: This trick works only when you are the Admin of the Facebook page.
- Copy the JavaScript code given below:
var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }
- Open your Facebook fan-page (Use Chrome Web-Browser). Click Build audience >> Invite Friends (located at the top-right corner of the page)
- 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.
- Now Press F12 Button on your Keyboard to open up developer options.
- In the developer options click Console Tab and paste (ctrl+v) the JavaScript code that you copied in the first step. Hit Enter key.
- 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:
- Fake Facebook profile how to trace
- Facebook user location tracker software
- How to find out who created a fake Facebook account
- How to hack Facebook account
- How to find someones IP address from Facebook
- Facebook hack tool
- Fake login page generator