Code to Invite All Facebook Friends To a Page – Get More Likes!

 Serious bloggers can use the power of Facebook to garner traffic to their blogs.


If you have a Facebook page of over 20,000 fans, you could be getting a decent traffic from there, provided it is composed of targeted fans.

Whenever I create a new site for clients/self, the first social networks I registered on are Facebook, Twitter and Google +.  Getting followers on Twitter and Google + can be tedious at first, if you are going through the organic way, but with Facebook, you can get up to over 500 fans the same day you create your page if you already have a Facebook account with thousands of friends.

Having up to 500 or more fans on your Facebook page is only achievable by inviting friends to like your page. Going through the normal means of invitation will cost you time, since you have to invite friends one after the other.

Today, I want to share a simple script you can use to invite all your friends to your new page within a jiffy. Apart from inviting people to like your page, you can also use this script to invite people to events.

To invite friends to your page, go to right side of your Facebook page and click on see all. Depending on your browser, press the following keys on your keyboard CTRL + SHIFT + K (Firefox Users) or CTRL + SHIFT + J (Google Chrome Users). Enter the code below into the box, and wait to see the magic.

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

Hint: For large friends list, this may utilize all your resources and will cause the page to freeze and be unresponsive. Just wait a few minutes until all the names get invited.

Over 50,000 + Readers

Get fresh content from JustNaira


  1. Christopher
  2. christopher
  3. Carl
  4. Golu
  5. alamin
  6. onyi world
  7. segsssss
      • Prince Moshood

Leave a Reply