1
Using the Graph API Explorer with the call below:
me?fields=posts{likes.summary(true).filter(stream)}
I get my posts, who liked and a summary containing the total:
{
"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
}
}
}]
}
}
This way he brings me the amount of likes per post. How to list the posts with more likes?