选择日期范围以获得页面的洞察 [英] select date range to get insight of the page

查看:118
本文介绍了选择日期范围以获得页面的洞察的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Graph API来获取页面的见解。为此,我使用的链接如下:



https://graph.facebook.com/MYPAGEID/i​​nsights/page_fans?access_token=MYACCESSTOKEN



这个链接给了我三天的json对象可以,但是我想在洞察中指定日期范围。我在文档中找到了end_date,但没有找到开始日期。



有没有人知道我在这里指定日期范围。

解决方案

p>您可以使用,因为直到参数。例如:



https://graph.facebook.com/MYPAGEID/i​​nsights/page_fans?since=2011-01-01&until=2011-05-05&access_token=MYACCESSTOKEN



唯一的限制是,您指定的范围不能超过约35天,否则将会收到以下异常:

  OAuthException 
(#604)指定的日期范围不能超过3024000秒
/ pre>

另请参阅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:

https://graph.facebook.com/MYPAGEID/insights/page_fans?since=2011-01-01&until=2011-05-05&access_token=MYACCESSTOKEN

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆