title: How do I get the "publish_actions" permission to work with the JavaScript Facebook API?
body: <p>I have an application and am trying to connect with:</p>
  
  <pre><code>FB.login(statusChangeAfterLogin,
              { scope:"public_profile,email,user_friends,publish_actions" });
  </code></pre>
  
  <p>However, it looks like the <code>publish_actions</code> gets totally ignored.</p>
  
  <p>That is, our application is able to get the public profile information, the email, and user friend list, but it is not able to share a dynamically generate image.</p>
  
  <p>I tried to break the login in two steps as in:</p>
  
  <pre><code>// first login when initializing (no publish_actions)
  FB.login(statusChangeAfterLogin,
              { scope:"public_profile,email,user_friends" });
  
  // second login when user is ready to share (just publish_actions)
  FB.login(statusChangeAfterLogin,
              { scope:"publish_actions" });
  </code></pre>
  
  <p>However, it looks like the second action does absolutely nothing.</p>
  
  <p>I'm not able to understand why I am supposed to do to allow the sharing without first having the <code>publish_actions</code> in the scope. I can see that it appears in the list of GET variables and includes all the parameters as expected, but the second login just opens a popup, close it, and done.</p>