, ,

Facebook Mass Invite to Like script

Ahmad Avatar

today I wrote  a script to help in sending an invitation to like your page

this happens when you promote a post for your audience and they interact with your post but they forget to like your page

so this script will help you to mass invite them in once

Screen Shot 2016-07-21 at 1.30.18 PM

1 – click on the likes for the post

2- open your browser console

paste this code

function submitMore(){
	var seemore = document.getElementsByTagName('a');
	var z = 0;
	for (var i = 0 ;i < seemore.length;i++){
		if (seemore[i].innerHTML == 'See More'){
			seemore[i].click();
		}
	}
}

function  CountSeeMore(){
	var seemore = document.getElementsByTagName('a');
	var z = 0;
	for (var i = 0 ;i < seemore.length;i++){
		if (seemore[i].innerHTML == 'See More'){
			z  +=1;
		}
	}
	return z;
}

function timeout() {
    setTimeout(function () {
    	var count = CountSeeMore();
    	if( count != 0 ) {
    		submitMore();
    		console.log("scraping..");
		var links = document.getElementsByTagName('a');
		for (var i = 0 ; i < links.length ; i++){
			if(links[i].innerHTML == "Invite"){
				links[i].click()
				console.log("invitations sent")
			}
		}
    	}
        timeout();
    }, 1000);
}

mass_invite = timeout()

 

hit enter

and result should be like this

Screen Shot 2016-07-21 at 1.23.20 PM

as you can see I sent around 200 invitation in once 😀

enjoy

Enjoying this article?

Subscribe to get new posts delivered straight to your inbox. No spam, unsubscribe anytime.

No spam. Unsubscribe anytime.

You may also like

See All blog →

2 responses to “Facebook Mass Invite to Like script”

  1. Cortez Avatar

    You are an hero. Where i can send Donations? Are you able to contact me over skype? ID: CortezTR

    1. n1x Avatar

      thanks, no need xD

Leave a Comment

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.