2017-04-26 63 views

回答

0

根據Facebook API documentationparent_id是「此帖的父帖子的ID(如果存在)」。因此,這不是你想要的。

您可以通過facebook4j的getFrom方法獲取帖子所屬頁面的ID。

圖形瀏覽器例如:

postId=5281959998_10151166683754999 
GET /v2.9/$postId?fields=from 
{ 
    "from": { 
    "name": "The New York Times", 
    "id": "5281959998" 
    }, 
    "id": "5281959998_10151166683754999" 
}