我在开发模式下有一个Facebook应用程序,显示有3个daily_active_users。根据对Graph API文档的了解,我可以发出200 * daily active users = total request per hour
,因此,我应该每小时可以发出600个请求
然后,我成为测试用户并尝试通过accounts
端点创建页面:
https://developers.facebook.com/docs/graph-api/reference/user/accounts/#Creating
这很适合单个请求。然后,我尝试编写脚本,每个请求之间有2秒的超时,并尝试创建100页。在大约10个请求之后,我从Facebook API得到以下响应:
{"error":{"message":"We limit how often you can post, comment or do other things in a given amount of time in order to help protect the community from spam. You can try again later. Learn More","type":"OAuthException","code":368,"error_data":{"sentry_block_data":"...","help_center_id":0},"error_subcode":1390008,"error_user_msg":"","fbtrace_id":"..."}}
。
它指出我的请求由于达到某种限制而被拒绝,但是这个限制是多少?我在任何地方的文档中都找不到。每小时/每天我可以与测试用户创建的页面数有限制吗?