2

Facebook アプリ開発は初めてです。ここで回答を得られることを願っています。

連続した月の Facebook インサイト データを取得することは可能ですか? 私はしようとend_time=2010-01-01しましsince=2010-01-31period=monthが、私は得ました

指定された日付範囲は 3024000 秒を超えることはできません!!

2010-02-01 から 2010-02-28 および 2010-03-01 から 2010-03-31 のようにするにはどうすればよいですか?

多くの例を試して使用しましたが、うまくいきませんでした: どうすればこの問題を解決できますか?

4

1 に答える 1

2

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.

于 2011-11-09T23:17:08.837 に答える