Post Top Ad

Monday, May 26, 2014

Code to invite all your friends to like a page on Facebook.

Hi guys as we know that the biggest social media is Facebook .Day by day people are creating  many new pages on Facebook in order to promote there services or products and some people are just creating the Facebook pages for fun and some manage Facebook pages in order to drive traffic to there sites .But,suppose you have a page on Facebook(New page) and you want to invite all your friends in your friend list to your page,normally what the people does is there invite each of them individually and it takes huge time.In order to save the time in this post i am going to show you how to invite all your friends on Facebook by using a simple javascript.So lets see how to do this. 


1.Open your Facebook page and click on "See all" option as shown below.

2.Now a window will pop up.From the pop up window select the "search all friends" as shown below.

3.Now, If you are using chrome as your browser press "CTRL + SHIFT + J" (CTRL + SHIFT + K if you are using Firefox) or simply press F12  and a box will pop up which is console box.In that copy the below code and paste it and hit enter as shown below.


COPY This code In to the above console and press enter .

javascript:var inputs = document.getElementsByClassName('uiButton _1sm'); 
for(var i=0; i<inputs.length;i++) { 

4.After hitting the enter option, wait for few seconds and you will see that the invitation from your page has been sen to all people.

5.That's it friends i hope you enjoyed this post and if you have any queries feel free to ask us through comments and have a nice day. 

No comments:

Post a Comment