title: How do you autopublish with FB.UI?
body: <p>I have the stream_publish permission but it still pops up a dialog and there doesn't seem to be any way to pass in an autopublish bool (like it was before the graph api). </p>
  
  <p>EDIT: Also tried offline_access with stream_publish.</p>
  
  <p>Any ideas on how to get this to work?</p>
  
  <p><pre><code>
  function streamPublish(imageUrl, imageHref, attachName, attachHref, attachCaption) {
   FB.ui(
     {
       method: 'stream.publish',
       message: '',
       attachment: {
         name: attachName,
         caption: attachCaption,
         description: (
           ''
         ),
         href: attachHref,
         media: [
           {
             type: 'image',
             href: imageHref,
             src: imageUrl
           }
          ]
       }
     },
     function(response) {
       if (response &amp;&amp; response.post_id) {
         //alert('Post was published.');
       } else {
         //alert('Post was not published.');
       }
     }
   );
  }
  </pre></code></p>