title: Facebook permissions: How to check if the user has already allowed publish_stream for your application
body: <p>How do I check if the user has already allowed your application to publish on his stream (to avoid the momentarily popup menu). Currently I'm simply using this JavaScript code:</p>
  
  <pre><code>&lt;script&gt;
      &lt;!--
          Facebook.showPermissionDialog('publish_stream,read_stream');
      //--&gt;
  &lt;/script&gt;
  </code></pre>