我试图在一个页面上获得前 10 个喜欢的帖子。我的查询是:
select message,likes from stream where
source_id=<pageid> and is_published=1
limit 10
这是返回的数据结构:
"message": "message",
"likes": {
"href": "https://www.facebook.com/browse/likes/?id=<id>",
"count": <likecount>, <- THIS IS THE FIELD I WANNA ORDER BY
"sample": [
],
"friends": [
],
"user_likes": false,
"can_like": true
如何使用 order by 子句按喜欢排序:计数字段?