title: Redirect after a user clicked a facebook like button
body: <p>I have a facebook tab with an iframe application and within that tab there is a facebook like button to have a second capability to like the facebook page. It is an ordinary facebook like button iframe.</p>
  
  <p>Is there a possibility to redirect the user when it clicks the button? I tried it the following code:</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      window.fbAsyncInit = function() {
          FB.init({appId: '&lt;my app id&gt;', status: true, cookie: true, xfbml: true});
          FB.Canvas.setSize({ width: 520, height: 1500 });
          FB.Event.subscribe('edge.create',
              function(response) {
                  alert('like!');
              }
          );
      };
  
      //Load the SDK asynchronously
      (function() {
          var e = document.createElement('script'); e.async = true;
              e.src = document.location.protocol +
                '//connect.facebook.net/en_US/all.js';
              document.getElementById('fb-root').appendChild(e);
      }());
  &lt;/script&gt;
  </code></pre>
  
  <p>But this doesn't work. Is there a way or am I doing something wrong?</p>