title: How can I add a redirect for after my Facebook page is liked?
body: <p>i have a web site which has some Facebook like buttons like below</p>
  
  <pre><code>&lt;div class="like-box"&gt;
    &lt;div class="fb-like" data-href="https://www.facebook.com/samebirthday.officialpage" data-width="500" data-layout="box_count" data-action="like" data-show-faces="true" data-share="false"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  
  &lt;script&gt;
    //facebook
    (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1&amp;appId=700721206653864";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
  &lt;/script&gt;
  </code></pre>
  
  <p>and then, how can I add a redirect for after my Facebook page is liked?
  i tried this one, but it didn't work.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    window.fbAsyncInit = function() {
      FB.init({
        appId      : '700721206653864',
        status     : false, // check the login status upon init?
        cookie     : true, // set sessions cookies to allow your server to access the session?
        xfbml      : true  // parse XFBML tags on this page?
      });
  
      FB.Event.subscribe('edge.create',
        function(response) {
          alert('liked!');
        }
      );
  
      FB.Event.subscribe('edge.remove',
        function(response) {
          alert('unliked!');
        }
      );
    };
  &lt;/script&gt;
  &lt;script src='http://connect.facebook.net/ja_JP/all.js'&gt;&lt;/script&gt;
  </code></pre>