gpt4 book ai didi

Facebook API : (#4) Application request limit reached

转载 作者:行者123 更新时间:2023-11-30 05:13:51 27 4
gpt4 key购买 nike

自 11 月下旬以来,我们就达到了 Facebook API 的应用程序限制。我们正在获取用户的照片,并选择了 25 张 friend 的照片 → 这是在用户签名时完成的(我们正在为用户建立相册)。

上述行动是有限的,但直到11月底才停止。我们正在使用批量调用从相册中获取照片 -有没有更好的方法不受限制地获取此信息?

顺便说一句,根据 Facebook 的说法,我们每天进行 100 万次调用,但根据我们的统计,我们每天进行 18 万次调用。

只获取用户的照片而不获取他 friend 的照片对我们来说不是解决方案。

最佳答案

Facebook API 限制并未真正记录在案,但显然类似于:600 calls per 600 seconds, per token & per IP .由于站点受限,引用相关部分:

After some testing and discussion with the Facebook platform team, there is no official limit I'm aware of or can find in the documentation. However, I've found 600 calls per 600 seconds, per token & per IP to be about where they stop you. I've also seen some application based rate limiting but don't have any numbers.

As a general rule, one call per second should not get rate limited. On the surface this seems very restrictive but remember you can batch certain calls and use the subscription API to get changes.

因为您可以通过 Javascript SDK 在客户端访问 Graph API;我认为如果您从客户端请求照片,您将不会达到任何应用程序限制,因为它是用户(每个人都有唯一的 ID)正在获取数据,而不是您的应用程序服务器(唯一的 ID ).

如果您所做的一切都通过服务器,这可能意味着巨大的重构。但如果您有这么多请求,这似乎是最好的解决方案(因为它会让您的服务器喘口气)。

否则,你可以尝试batch request ,但我想如果你的流量很大,你已经在走这条路了。


根据Facebook Platform Policy,如果这些都不起作用,你应该联系他们。

If you exceed, or plan to exceed, any of the following thresholds please contact us as you may be subject to additional terms: (>5M MAU) or (>100M API calls per day) or (>50M impressions per day).

关于 Facebook API : (#4) Application request limit reached,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14092989/

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