Facebook Graph API/{page-id}/帖子每年限制为600个帖子 [英] Facebook Graph API /{page-id}/posts limiting to 600 posts per year

查看:73
本文介绍了Facebook Graph API/{page-id}/帖子每年限制为600个帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为一些新闻公司获取2014年的所有帖子时,我注意到,这些帖子似乎在某个日期截止,然后跳到下一年.

While fetching all the posts for 2014 for a few news companies I noticed that the posts seem to cut off at a certain date and jump to the next year.

例如,我要求发布以下内容:

For example, I am requesting the posts with the following:

https: //graph.facebook.com/v2.2/5823419603/posts?limit=100&date_format=U&include_hidden=true&access_token=XXXX

然后使用分页将时间倒退到前一个(依此类推,以此类推) 我看到的是以下摘要:

Then using Pagination to go back in time to the previous (and so on and so fourth) What I see is the following summarization:

2015_week_10: 196 Posts
2015_week_09: 232 Posts
2015_week_08: 169 Posts
Total Posts: 597

然后令我惊讶的是,下一个条目跳至2014年(缺少2015年的几周)

And then to my surprise, the next entry jumps to 2014 (missing a few weeks of 2015)

2014_week_53: 115 Posts
2014_week_52: 216 Posts
2014_week_51: 235 Posts
2014_week_50: 32 Posts
Total Posts: 598 Posts

然后再跳到2013年

2013_week_53: 57 Posts
2013_week_52: 95 Posts
2013_week_51: 145 Posts
2013_week_50: 170 Posts
2013_week_49: 130 Posts
Total Posts: 597

它在2012年进一步延伸,在第41周到第53周之间,我收到594个帖子

It stretches out a bit further in 2012 and I get 594 posts between weeks 41 and 53

然后在2011年,我在第6周(几乎做到了)到第53周之间收到601个帖子

then in 2011 I get 601 posts between week 6 (Almost made it!) and week 53

我在第二个Facebook页面(100362243341518)上运行了该测试,并得到了类似的结果: 2014年为599个帖子,2013年为587个帖子,2012年为599个帖子,2011年为600个帖子

I ran this test on a secondary Facebook Page (100362243341518) and got similar results: 599 posts in 2014, 587 in 2013, 599 in 2012 and 600 in 2011

在Facebook Web UI中手动加载更多"可让我看到缺少的时间范围内有帖子.对该问题的某些页面的见解访问显示,在缺少的时间范围内,帖子上有印象数.

Manually "loading more" in the Facebook Web UI allows me to see that there are posts in the missing time frames. Insights access to some pages with this issue shows me that there are Impressions on a posts during the missing time frame.

我已在此处的Facebook页面上搜索了文档. 但什么也没发现.有人提到Limit参数的上限是250,但这是每个结果集的总和,而不是总计的(正如我在Facebook上发表的大约一千篇文章所证明的)

I have scoured the documentation on the Facebook page here but found nothing. There is a mention that the Limit param is upper bounded to 250, but that is per result set, not total (as evidenced by my thousand or so Facebook post pull)

我看了无数StackOverflow文章和在线博客文章,似乎没有人提到这样的事情.

I have looked at numerous StackOverflow articles, and blog articles online, and no one seems to be mentioning anything like this.

我已经使用/posts和/feed边缘运行了此测试,结果相同.

I have run this test with both the /posts and /feed edge with the same results.

如果有人想看看这些帖子,我已经保存了这些帖子的原始CSV文件,但我会注意到,但您会看到同样的事情.

I have saved the raw CSV files for these posts if someone wanted to look at them let me know, but you will see the same thing that I am noticing.

我完全不知道为什么所有帖子都未显示在API中.有人对此事有见识吗?

I am at a complete loss as to why all the posts are not showing up in the API. Does anyone have some insight on the matter?

推荐答案

这已被Facebook确认为错误,并已解决. Facebook将向所有页面推出此修复程序.

This was confirmed as a bug by Facebook, and resolved. Facebook will be rolling out the fix to all pages.

Shireesh Asthana··Facebook团队

Shireesh Asthana · · Facebook Team

嗨杰森,

我们正在逐步推出此修复程序.我们已经将您提供的页面添加到了修复程序中.我们将在未来几周内更公开地推出该产品.感谢更新!让我们知道您是否还有其他问题.

We're in the process of slowly rolling out the fix. We've added the page you provided to the fix. We'll roll it out more openly in the coming weeks. Thanks for the update! Let us know if you have additional questions.

3月23日下午4:29·

March 23 at 4:29pm ·

有关更多详细信息,请参见此处: https://developers.facebook.com/bugs/1624654314422095

See here for more details: https://developers.facebook.com/bugs/1624654314422095

这篇关于Facebook Graph API/{page-id}/帖子每年限制为600个帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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