title: Facebook OAuthException: "user hasn't authorized the application to perform this action"
body: <p>Using the Facebook PHP SDK, I'm getting the following error when I try to post a status update:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught OAuthException:
    (#200) The user hasn't authorized the
    application to perform this action</p>
  </blockquote>
  
  <p>These are the steps I've taken:</p>
  
  <ol>
  <li><p>Get code:</p>
  
  <pre><code>https://graph.facebook.com/oauth/authorize?client_id=FB_APP_ID&amp;redirect_uri=REDIRECT_URI
  </code></pre></li>
  <li><p>Get access token:</p>
  
  <pre><code>https://graph.facebook.com/oauth/access_token?client_id=FB_APP_ID&amp;code=CODE&amp;client_secret= FB_SECRET&amp;redirect_uri=REDIRECT_URI
  </code></pre></li>
  <li><p>Attempt the status update:</p>
  
  <pre><code>require_once(facebook.php);
  $fb = new Facebook(array(
      'appId' =&gt; FB_APP_ID,
      'secret' =&gt; FB_SECRET
  ));
  $post = $fb-&gt;api('me/feed', 'POST', array(
      'access_token' =&gt; ACCESS_TOKEN, 
      'message' =&gt; 'hello world!'
  ));
  </code></pre></li>
  </ol>
  
  <p>I don't see any settings in my application that would authorize the application to do this, but maybe I'm missing something. Any suggestions?</p>