如何获取连续几个月的facebook洞察数据?

发布于 2024-12-13 14:28:27 字数 345 浏览 0 评论 0原文

我是 Facebook 应用程序开发的新手,希望能在这里得到答案。

是否可以检索连续几个月的 Facebook 洞察数据? 我尝试了 end_time=2010-01-01since=2010-01-31period=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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抚笙 2024-12-20 14:28:27

对我有用的事情与你正在做的事情非常相似,不同之处在于我对 SINCE 和 UNTIL 使用 UNIX 时间戳。

示例:(

https://graph.facebook.com/212686148747689/insights/
page_impressions_by_city_unique/week/?    
access_token=QWERTYUI&since=1315699200&until=1320796800

这一切都应该在一行上,但这样更容易阅读,至少对我来说是这样。)

使用这种方法时,您需要小心并确保 SINCE 和 UNTIL 之间的差异不大于90 天。否则,您将收到错误,如下所示:

(#604) The specified date range cannot exceed 7776000 seconds

最后,如果您没有自动生成 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:

https://graph.facebook.com/212686148747689/insights/
page_impressions_by_city_unique/week/?    
access_token=QWERTYUI&since=1315699200&until=1320796800

(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:

(#604) The specified date range cannot exceed 7776000 seconds

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文