如何获取连续几个月的facebook洞察数据?
我是 Facebook 应用程序开发的新手,希望能在这里得到答案。
是否可以检索连续几个月的 Facebook 洞察数据? 我尝试了 end_time=2010-01-01
到 since=2010-01-31
和 period=month
但我得到了
指定的日期范围不能超过3024000秒!!
我将如何获得 2010-02-01 至 2010-02-28 和 2010-03-01 至 2010-03-31 ?
我尝试并使用了很多例子,但我无法成功:我该如何解决这个问题?
I'm new to Facebook app development I hope I can get an answer here.
Is that possible to retrieve Facebook insight data for consecutive months?
I tried end_time=2010-01-01
to since=2010-01-31
and period=month
but I got
The specified date range cannot exceed 3024000 seconds!!
How will I get like 2010-02-01 to 2010-02-28 and 2010-03-01 to 2010-03-31?
I have tried and used lots of examples but I couldn't succeed: How can I solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我有用的事情与你正在做的事情非常相似,不同之处在于我对 SINCE 和 UNTIL 使用 UNIX 时间戳。
示例:(
这一切都应该在一行上,但这样更容易阅读,至少对我来说是这样。)
使用这种方法时,您需要小心并确保 SINCE 和 UNTIL 之间的差异不大于90 天。否则,您将收到错误,如下所示:
最后,如果您没有自动生成 UNIX 时间戳的方法,请访问如下网站:
http://www.epochconverter.com/
如果其他人有更好的见解,请分享。我希望这有帮助。
The thing that has worked for me is very similar to what you are doing, with the difference being that I use the UNIX timestamp for SINCE and UNTIL.
Example:
(That's all supposed to be on one line, but it's easier to read it this way, at least for me.)
With this approach, you want to be careful and make sure that the difference between SINCE and UNTIL is not bigger that 90 days. Otherwise, you'll get an error, like so:
Finally, if you don't have a way of generating the UNIX timestamp automatically, go to a web site like:
http://www.epochconverter.com/
If anyone else has some better insights, please share. I hope this helps.