2011-10-18 85 views
0

我用下面的代碼發佈到頁面的feed發了帖子如何檢索後ID爲我剛剛通過Facebook的API

$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); 

所以問題是如何獲得後POST_ID發佈它?

回答

1

檢查$ result變量中的值,該值應該是實際的post_id值。