title: Disable Facebook Feed Dialog's redirect functionality after Send/Cancel buttons are clicked
body: <p>Here is how I implement Facebook Feed Dialog to my page:<br/>
  <strong>HTML tag:</strong></p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/"&gt;
  </code></pre>
  
  <p><strong>JavaScript:</strong></p>
  
  <pre><code>(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/en_US/all.js#xfbml=1&amp;appId=***************"; 
      fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
  
  FB.init({
      appId: '***************', 
      display: 'popup',
      status: true, 
      cookie: true, 
      xfbml: true, 
      oauth: true,
      method: 'send'
  });
  </code></pre>
  
  <p><strong>Send button:</strong></p>
  
  <pre><code>&lt;a onclick="javascript:twitter(this); return false;" href="https://www.facebook.com/dialog/feed?display=popup&amp;app_id=***************&amp;name=&lt;name&gt;&amp;link=&lt;link&gt;&amp;redirect_uri=&lt;uri&gt;"&gt;
      &lt;div class="fb-container"&gt;&lt;/div&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Here I am using Twitter's popup script because <code>display:popup</code> doesn't work, don't know why. </p>
  
  <p>However the popup appears and I send the feed. But then I am redirected to <code>redirect_uri</code>. I don't want this. I just want to close the popup after clicking Send or Cancel button. I tought something like detecting if a button is clicked and then try <code>window.close;</code> but no success because it is a new window (the popup). </p>
  
  <p>Any ideas?</p>