[英]How to read Facebook post based on updated time using API
How to read Facebook comments based on updated time through API? 如何通过API根据更新时间阅读Facebook评论?
I tried "since" and "until" but both are reading the data based on created time. 我尝试“自”和“直到”,但两者都基于创建的时间读取数据。
for example let us assume a user created a post on his timeline two days back and someone commented on the post today. 例如,假设用户两天前在自己的时间轴上创建了一条帖子,而今天某人对此发表了评论。 If I try to read the comment done on today using the following query /me/feed?since=2014-09-08 it doesn't return anything because the created date is two days back. 如果我尝试使用以下查询/ me / feed?since = 2014-09-08阅读今天完成的评论,则它不会返回任何内容,因为创建的日期早了两天。
There's unfortunately no way to query the Graph API concerning the upate timestamp IMHO. 不幸的是,没有办法查询有关最新时间戳IMHO的Graph API。 since
and until
reference the created_time
, as you said. since
, until
引用了created_time
until
。
If you have a Graph API v2.0 app, you could theoretically use FQL to query by comment creation timestamp. 如果您有Graph API v2.0应用程序,则理论上可以使用FQL按注释创建时间戳进行查询。 Have a look at the comment
table at https://developers.facebook.com/docs/reference/fql/comment/ and the field time
. 看一下https://developers.facebook.com/docs/reference/fql/comment/上的comment
表和字段time
。 I guess you'd have to in conjunction with the stream
table to get the post_is
list. 我想您必须与stream
表一起才能获取post_is
列表。
To be able to use FQL you'll need an app which is an Graph API v2.0 app. 为了能够使用FQL,您需要一个应用程序,它是Graph API v2.0应用程序。 And FQL will only work until April 30th 2016. FQL仅在2016年4月30日之前有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.