select date range to get insight of the page

后端 未结 1 1768
庸人自扰
庸人自扰 2021-02-15 06:14

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<

相关标签:
1条回答
  • 2021-02-15 06:51

    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

    0 讨论(0)
提交回复
热议问题