title: Facebook JavaScript SDK: FB.ui opens a popup window
body: <p>I am trying to show a 'Post to Your Wall' feed dialog with the following code in a facebook iframe app:</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
    &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;
    &lt;/script&gt;
    &lt;script&gt;
       FB.init({ 
          appId:'249725835046216', cookie:true, 
          status:true, xfbml:true 
       });
  
       FB.ui({ method: 'feed', 
          message: 'Facebook for Websites is super-cool',
          name: 'Facebook Dialogs',
          link: 'http://developers.facebook.com/docs/reference/dialogs/',
          picture: 'http://fbrell.com/f8.jpg',
          caption: 'Reference Documentation',
          description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
  
  
  
          });
    &lt;/script&gt;
  </code></pre>
  
  <p>The problem is that it is appearing in a new popup window like this:</p>
  
  <p><img src="https://i.stack.imgur.com/ajXTj.png" alt="enter image description here"></p>
  
  <p>Instead of appearing as like this without appearing in a popup window:</p>
  
  <p><img src="https://i.stack.imgur.com/LBh5Y.png" alt="enter image description here"></p>
  
  <p>I don't want the feed dialog to appear in a new popup windows because in most modern web browsers where popups are blocked. I don't know why this is happening. Please help.</p>