1
使用圖形瀏覽器API調用有以下:列表中選擇最喜歡的職位
me?fields=posts{likes.summary(true).filter(stream).order(ranked)}
我得到我的職位,誰喜歡含總摘要:
{
"posts": {
"data": [{
"id": "xxxxxxxxxxxxxxxxxxx",
"likes": {
"data": [{
"id": "xxxxxxxxxxxxxxxxxxx",
"name": "xxxxxxxxxxxxxxxxxxx"
}],
"paging": {
"cursors": {
"before": "...",
"after": "..."
},
"next": "..."
},
"summary": {
"total_count": 35,
"can_like": true,
"has_liked": false
}
}
}, {
"id": "zzzzzzzzzzzzzz",
"likes": {
"data": [{
"id": "zzzzzzzzzzzzzz",
"name": "zzzzzzzzzzzzzz"
}],
"paging": {
"cursors": {
"before": "...",
"after": "..."
},
"next": "..."
},
"summary": {
"total_count": 30,
"can_like": true,
"has_liked": false
}
}
}]
}
}
這樣,他帶來了我每個帖子的喜歡量。如何列出更喜歡的帖子?
哦,噓...真的嗎? –
吮吸,對吧?但唉,這是真的。 – rjdown
剛剛在這裏找到了一些類似的答案http://stackoverflow.com/questions/37703532/facebook-graph-api-sorting-search-results http://stackoverflow.com/questions/38448554/facebook-graph-search-order-結果 – rjdown