选择日期范围以获得页面的洞察 [英] select date range to get insight of the page
问题描述
我正在使用Graph API来获取页面的见解。为此,我使用的链接如下:
https://graph.facebook.com/MYPAGEID/insights/page_fans?access_token=MYACCESSTOKEN
这个链接给了我三天的json对象可以,但是我想在洞察中指定日期范围。我在文档中找到了end_date,但没有找到开始日期。
有没有人知道我在这里指定日期范围。
p>您可以使用,因为和直到参数。例如:
唯一的限制是,您指定的范围不能超过约35天,否则将会收到以下异常:
OAuthException
/ pre>
(#604)指定的日期范围不能超过3024000秒
另请参阅FB自己的使用这些参数的描述: http://developers.facebook.com/blog/post/478
I am using Graph API for getting insights of the page. For that I am using link like :
https://graph.facebook.com/MYPAGEID/insights/page_fans?access_token=MYACCESSTOKEN
This link gives me last three days of json object which is ok, but I want to specify date range in insights. I found end_date in documentation but not found start date.
Did any one know how I specify date range in this.
解决方案You can use the since and until parameters. For example:
The only limitation is that you the range you specify cannot include be longer than about 35 days, otherwise you'll get this exception:
OAuthException (#604) The specified date range cannot exceed 3024000 seconds"
Also see FB's own description of this using these parameters here: http://developers.facebook.com/blog/post/478
这篇关于选择日期范围以获得页面的洞察的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!