Facebook Graph API search using since updated_time parameter -
i using facebook graph api in python. every post has 2 datetimes:
created_dateupdated_date
when providing since parameter, returning feeds created_date greater or equal since parameter. example, if provide since=2015-06-05 return posts 5th june, 2015 now.
but suppose there post posted on 7th june, 2015 , few activities (likes, shares, comments, etc.) happened on 8th june, 2015. in scenario updated_time of post changes created_time same (7th june, 2015). if pass parameter since=2015-06-08, won't able track of activity on post.
is there solution can pass since parameter on updated_time instead of passing created_time?
as @cbroe points out, isn't supported facebook graph api. (it can done using fql, that's deprecated , won't supported longer).
that said, creativity (and bit code) similar effect can achieved combining couple of queries.
in application, perform query following parameters:
until=2015-07-07(or whateversincedate have been)fields=updated_time(to keep query fast , payload small)limit=5000(or large page size, i'm grabbing 1 field)
i evaluate each post has updated_time greater would-be since date, , throw posts queue download entirety of post content.
note: if you're dealing content there frequent updates on past content, you'd want use graph api's batch requests feature, opposed downloading each post individually.
so, example, if until (and, thus, since) date 2015-07-07 , updated_time on post 2015-10-15, know post created prior 2015-07-07 updated afterwards. won't picked in since query, can download individually synchronize cache.
Comments
Post a Comment