i am using the following code to publish to a Page’s feed connection
$attachment = array('message' => 'xxxxxxxxxxxxxxxxx',
'name' => 'cccccccccccccccc',
'caption' => 'cccccccccccccccc',
'link' => 'http://apps.facebook.com/manydldotnet/',
'description' => "ccccccccccccc",
'picture' => "'cccccccccccccccc'",
'actions' => array(array('name' => 'Download!','link' => 'http://apps.facebook.com/manydldotnet/'))
);
$result = $facebook->api('/121468571287906/feed/','post',$attachment);
so the question is how to get the post_id after posting it?
The Post’s id is stored in
$result['id'].It’s the return value of the call to
feed; this is also the case for/links,/photos, etc.Ref: http://developers.facebook.com/docs/reference/php/facebook-api/