Want create site? Find Free WordPress Themes and plugins.

Do you want more likes to your Facebook page? Why not start by inviting ALL YOUR FRIENDS to like your page. That usually means visiting the page, and inviting your friends by clicking the ‘Invite’ button one at a time to invite each friend, but why not do it with a simple JavaScript?

facebook_like
Facebook like

How to invite all your friends to like your facebook page

Script execution in Mozilla Firefox and Google Chrome are different, so I’ve separated the steps for each.

Firefox:

Visit the page you want to invite all your friends. e.g visit http://facebook.com/echosolutionsblog

Scroll down until you get to the end of your friends list

On your address bar, type

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

Press ENTER, wait a few seconds, and, BINGO, all your friends are invited.

Chrome

Visit the page you want to invite all your friends. e.g visit http://facebook.com/echosolutionsblog

Scroll down until you get to the end of your friends list

Right-click anywhere on the page and click “Inspect Element”.  A box pops up below the page.

Click the ‘Console’  tab

Type this code and press enter

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

Caution: the uiButton _1sm must have the space between uiButton and the underscore symbol, or it will return “undefined”.

Wait a few seconds, and, BINGO, all your friends are invited.

 

See a video of how this works (I take no credits for the creation of this video)

 

Geeky explanation:

The JavaScript code executes a loop that clicks on every ‘Element’ that has a className equal to ‘uiButton _1sm’ (which is the ‘Invite’ button). So if tomorrow Facebook decides to change this element name, you can always modify the script to your taste

Enhanced by Zemanta
Did you find apk for android? You can find new Free Android Games and apps.

2 COMMENTS

Leave a Reply