Graph api - 喜欢/直到 - 因为
是否可以在点赞请求中使用参数“since”和“until”?
我正在尝试:
https://graph.facebook.com/me/likes?limit=500&offset=0&since=2011-01-01&access_token=...
我今天喜欢了一篇文章,但它不起作用。它只能显示我过去喜欢的2页。
使用 FQL 时,它按预期工作,但“since”或“until”参数都有效。
也尝试使用 FQL,但无法使其工作:
https://graph.facebook.com/fql?q=' . rawurlencode('SELECT object_id FROM like WHERE user_id = me() LIMIT 500') . '&access_token=...
我认为不可能在类似的情况下使用这些参数,我说得对吗?
Is there a possibility to use the parameters "since" and "until" in the likes request?
What I'm trying:
https://graph.facebook.com/me/likes?limit=500&offset=0&since=2011-01-01&access_token=...
I liked a post today, but it is not working. It can only show 2 pages which I liked in the past.
When using FQL, it is working as expected, but the "since" nor "until" parameter are working..
Also tried with FQL, but can't get it working:
https://graph.facebook.com/fql?q=' . rawurlencode('SELECT object_id FROM like WHERE user_id = me() LIMIT 500') . '&access_token=...
I think it is not possible to use those parameters on a like, am I correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看分页文档,位于此处。
在回答这个问题时,它说......
“以下图形 API 连接是基于游标的,即将推出更多连接:
”
并且看起来已经有一个错误提交,要求将“/喜欢”添加到列表中,如前所述(可以找到此处)
但是...
点赞会按时间顺序返回,因此您不必收集所有点赞即可找到自特定日期以来的点赞。我不知道你是否可以依靠这个,所以使用这个需要你自担风险。
(附注:我梦想有一天 Facebook 能够真正发展到能够提供成熟的 API。)
Have a look at the documentation for pagination, which is here.
At the time of this answer it says...
"The following Graph API connections are cursor-based with more coming soon:
"
and it looks like there is already a bug filed requesting that '/likes' be added to the list as noted (it can be found here)
HOWEVER...
The likes come back in chronological order so you don't have to gather all of them to find the ones since a particular date. I've got no idea if you can count on this or not so use this at your own risk.
(A side note: I dream of the day when Facebook actually grows up enough to deliver a mature API.)