gpt4 book ai didi

api - Facebook 图形 API 速率限制和批量请求

转载 作者:行者123 更新时间:2023-12-03 03:25:13 24 4
gpt4 key购买 nike

我见过一些人提到的 600 次调用/600 秒的速率限制(例如 quora )。

我想知道的是我是否可以做600 batch 600 秒内请求(批量请求最多包含 50 个请求)。

最佳答案

您应该通过检查以下错误消息以编程方式处理速率限制。如果遇到错误,您应该在下次调用之前放入时间等待循环。我的一个高流量应用程序帐户会监视此错误并会减慢速度。

来自:https://developers.facebook.com/docs/bestpractices/

Rate limited (API_EC_TOO_MANY_CALLS) If your application is making too many calls, the API server might rate limit you automatically, returning an "API_EC_TOO_MANY_CALLS" error. Generally, this should not happen. If it does, it is because your application has been determined to be making too many API calls. Iterate on your code so you're making as few calls as possible in order to maintain the user experience needed. You should also avoid complicated FQL queries. To understand if your application is being throttled, go to Insights and click "Throttling".

编辑

正如 Igy 在评论线程中所报道的那样,该批处理中的每个请求都计为 1。对于您的示例,最大限制为 600,这意味着您可以触发 15 个批处理请求,每个请求包含 50 个调用。

关于api - Facebook 图形 API 速率限制和批量请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8805316/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com