我正在使用FQL。这是我的代码,它是来自流表的消息。
NSString *fql = [NSString stringWithFormat:@"SELECT actor_id, message,likes FROM stream WHERE source_id = %lld ORDER BY likes limit 50",_session.uid]
我得到的结果如下。
{
"actor_id" = 100002464401210;
likes = {
"can_like" = 1;
count = 2;
friends = (
{
uid = 10000215363608;
}
);
href = "http://www.facebook.com/browse/?type=likes&id=106536123438461";
sample = (
);
"user_likes" = 1;
};
message = "hello wall testing..";
},
{
"actor_id" = 10000223601210;
likes = {
"can_like" = 1;
count = 0;
friends = (
);
href = "http://www.facebook.com/browse/?type=likes&id=108123469280566";
sample = (
);
"user_likes" = 0;
};
message = "New integration";
},
我想对我的查询进行排序,就像最喜欢的帖子一样。 如何修改我的查询以显示最喜欢的内容。
提前致谢
答案 0 :(得分:0)