Facebook Graph API - 订购商品
我目前正在使用图形 API,并尝试按评论数量对帖子进行排序。
虽然看起来应该非常简单,但我似乎无法让它发挥作用。他们有一个“limit”和“offset”参数,但没有 orderby 参数(无论如何在他们的文档中)。
https://graph.facebook.com/platform/posts
基本上我想订购这样的东西按评论数量。但是,是的,完全迷失了......如果有人可以帮助我,我将不胜感激!
(我看过一些 FQL 示例,但我不确定如何通过 FQL 抓取帖子,甚至不确定如何仅使用 CURL 执行 FQL)
谢谢,
--d
I am working with the graph API at the moment and I am trying to order posts by the number of comments on it.
While it seems like it should be pretty straight forward, I can't seem to get it to work. They have a parameter for "limit" and "offset", but nothing for orderby (in their documentation anyway).
https://graph.facebook.com/platform/posts
Basically I want to order something like this by number of comments. But yea, totally lost... If anyone can help me, it would be much appreciated!
(I've seen some FQL examples, but I am not sure how I can grab posts via FQL or even how I can execute FQL by simply using CURL)
Thanks,
--d
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你必须自己使用排序库。我也在我的程序中使用了它,通过 JSON 输出,对它们进行排序应该不会太难。
I think you have to use a sorting library yourself. I used this in my program as well, with the JSON output it shouldn't be too hard to sort them.