title: Posting to Facebook Newsfeed using Graph API in PHP
body: <p>I am trying to post a message to a user's feed (wall).</p>
  <p>I've already got the <code>publish_stream</code> permission and have the user's id (<code>$fbid</code>) and access token (<code>$access_token</code>), however I am only able to post an empty message to the wall.</p>
  <p>This is what the post looks like:</p>
  <blockquote>
  <p>User Name</p>
  <p>Like · Comment · 12 minutes ago via AppName</p>
  </blockquote>
  <p>So basically all the content of the message is missing (everything in the <code>$data</code> variable).</p>
  <p>This is the code I used:</p>
  <pre><code>include 'facebook.php'; 
  $facebook = new Facebook(array(appId =&gt;  $app_id,
                                 secret =&gt; $app_secret,
                                 cookie =&gt; true));
  
  $data['post'] = array('access_token' =&gt; $access_token,
                        'message' =&gt; 'Sign up now',
                        'picture' =&gt; 'http://myurl.com/images/pic.jpg',
                        'link' =&gt; 'http://myurl.com/',
                        'caption' =&gt; 'Get early access to our app'); 
  
  $post_id = $facebook-&gt;api('/'.$fbid.'/feed/', 'post', $data);
  </code></pre>
  <p>What am I missing? Why is <code>$data</code> content not displayed in the post?</p>