title: Facebook API: How to post to a page wall
body: <p>It's the same situation as <a href="https://stackoverflow.com/questions/5205602/facebook-api-how-to-post-to-own-application-wall-without-login">here</a>, but now I need to post a message to the wall of a Facebook <strong>Page</strong>.</p>
  
  <p>I tried the following (the other code is the same as in the answer): </p>
  
  <pre><code>$facebook-&gt;api('/PAGE-ID/feed', 'post', $attachment)
  </code></pre>
  
  <p>But I get the error</p>
  
  <blockquote>
    <p>(#200) The user hasn't authorized the application to perform this action`.</p>
  </blockquote>
  
  <p>I think I have the wrong <code>access_token</code> for that action but where/how do I get the correct?</p>