title: Publish to Facebook Wall with Graph & PHP
body: <p>I'm having trouble using the open graph authorization to publish to the visitors facebook wall, and can't seem to figure out where I'm wrong.  I'm using the PHP/SDK Library from Github.  Here's my code:</p>
  
  <pre><code>&lt;?php
  require_once('facebook.php');
  $facebook = new Facebook(array(
    'appId'  =&gt; 'APP_ID',
    'secret' =&gt; 'APP_SECRET',
    'cookie' =&gt; true,
  ));
  
  $session = $facebook-&gt;getSession();
  
  $me = null;
  //session-based api call
  if ($session) {
    try {
      $uid = $facebook-&gt;getUser();
      $me = $facebook-&gt;api('/me');
    } catch (FacebookApiException $e) {
      error_log($e);
    }
  }
  
  //post to wall/stream function
  if(isset($_POST['status'])) {
      try {
          $result = $facebook-&gt;api(
              '/me/feed',
              'post',
              array(
                  'access_token' =&gt; 'ACCESS_TOKEN', 
                  'message' =&gt; $_POST['status']
                  )
              );
      } catch (FacebookApiException $e) {
          echo 'Error: ' . print_r($e, true);
      }
  }
  ?&gt;
  
  &lt;!-- HTML Form --&gt;
  &lt;form name="" action="index.php" method="post"&gt;
      &lt;input type="text" name="status" id="status" value=""&gt;
      &lt;input type="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I don't know what's going on, I've combed through a billion tutorials, posts, exchanges, etc. and it seems like I'm doing everything right.  Any help would be greatly appreciated.</p>