title: Facebook api wall post in php
body: <p>I tried below code not working </p>
  
  <pre><code>$attachment = array('message' =&gt; 'some meesgae', 'name' =&gt; 'This is my demo Facebook application!', 'caption' =&gt; "Caption of the Post", 'link' =&gt; 'http://mylink.com', 'description' =&gt; 'this is a description', 'picture' =&gt; 'http://mysite.com/pic.gif', 'actions' =&gt; array(array('name' =&gt; 'Get Search',     'link' =&gt; 'http://www.google.com')) );
  
  
  $result = $facebook-&gt;api('/me/feed/','post',$attachment);
  </code></pre>
  
  <p>And i given the extended permission "publish_stream" </p>
  
  <pre><code> $loginUrl = $facebook-&gt;getLoginUrl(array('req_perms' =&gt; 'email,user_birthday,status_update,publish_stream'));
  </code></pre>