title: PHP SDK: Post to FB application's wall as the app itself
body: <p>There are a lot of questions on SO about this, but not exactly what I am looking for.</p>
  
  <p>In my case, users can log in through Facebook/Twitter/other. And they can upload an image.
  Once they upload an image, two things will happen. The FB user's status is updated with an attachment to the link. And on the FB App's wall, a status update is also posted but by the application itself and not by the user. I am having trouble with this last part. So the user does not have to be logged in through Facebook for this latter to occur.</p>
  
  <p>My code:</p>
  
  <pre><code>$facebook = new Facebook($config);
  
  $attachment = array(
  'message' =&gt; 'A user just posted a new item',
  'name' =&gt; $tag,
  'caption' =&gt; $desc,
  'link' =&gt;  WEBURL,
  'description' =&gt; '',
  'picture' =&gt; $img,
  'actions' =&gt; array(array('name' =&gt; 'Go to item',
                    'link' =&gt; WEBURL))
  );
  
  
  $facebook-&gt;api('/'.PAGEID.'/feed', 'POST', $attachment);
  </code></pre>