2011-10-04 23 views

回答

0
FB.api('/me/feed', 'post', { link: body,picture:PICTURE,name:'NAME',description:'DESCRIPTION',caption:'CAPTION',message:'MESSAGE'  }, function(response) { 
if (!response || response.error) { 
    alert('Error occured'); 
} else { 
alert('Post ID: ' + response.id); //response.id is the post ID of the post published. 
} 

對不起,你正在使用圖形API ...我的壞。 當帖子發佈後,你會在回覆中得到id。 檢查它。它應該在JSON格式中。 「id:POST_ID」就是這樣的。