title: post to facebook wall - PHP
body: <p>i have created an application where user can post message to their own wall !
  this is my code</p>
  
  <pre><code>try {
  $facebook = new Facebook(FB_APIKEY, FB_SECRET);
  $facebook-&gt;api_client-&gt;session_key = FB_SESSION;
  $fetch = array('friends' =&gt;
  array('pattern' =&gt; '.*',
  'query' =&gt; 'select uid2 from friend where uid1={$user}'));
  
  $message = 'Hello There ...';
  if ($facebook-&gt;api_client-&gt;stream_publish($message)) //149th line
  echo 'message posted successfully';
  } catch(Exception $e) {
  echo $e . '&lt;br /&gt;';
  }
  </code></pre>
  
  <p>it returns an error Fatal error: Call to undefined method stdClass::stream_publish() in /home/webshine/public_html/tutorials/fb/example.php on line 149
  what is wrong ?</p>