title: Publish post with picture and link on event's wall
body: <p>Is there a way to publish a post with a picture and a link on an event's wall? Currently I can publish only statuses (messages). On the user's wall there is no such issue. I've tried the new Graph API as well as the old REST API ('stream.publish' method) with no success (using PHP SDK).
  Thank you in advance.</p>
  
  <p>The code I use for Graph API:</p>
  
  <pre><code>$attachment = array(
              'message' =&gt; 'my message',
              'name' =&gt; 'This is my demo Facebook application!',
              'caption' =&gt; "Caption of the Post",
              'description' =&gt; 'this is a description',
              'picture' =&gt; 'link to an image',
              'actions' =&gt; array(array('name' =&gt; 'See recipe',
              'link' =&gt; 'http://www.google.com'))
          );
  $facebook-&gt;api('/'.$eventID.'/feed/','post',$attachment);
  </code></pre>
  
  <p>The code for REST API:</p>
  
  <pre><code>$url = "https://api.facebook.com/method/stream.publish?".$access_token;
  
  $attachment = array('name' =&gt; 'This is my demo Facebook application!',
     'href' =&gt; 'http://news.google.com',
     'description' =&gt; 'It is fun!',
     'media'=&gt; array(array(
                    'type'=&gt; 'image',
                    'src' =&gt; 'link to an image',
                    'href' =&gt; 'http://www.google.gr'))
     );
  
  $params = array();
  $params['message'] = "my message";
  $params['attachment'] = json_encode($attachment);
  $params['target_id'] = $eventID;
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,$url);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
  $result = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>As I mentioned above, both is working if I publish on user's wall. On event's wall a status message is published showing only the content of 'message' parameter.</p>