Facebook Graph API限制 - 每个令牌和每个IP? [英] Facebook Graph API limit - per token and per IP?

查看:143
本文介绍了Facebook Graph API限制 - 每个令牌和每个IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用的是Facebook Graph API。该文件指定速率限制是每600秒600个呼叫,每个令牌&每IP我不明白这是什么意思,所以告诉我这些例子是否会通过有效的汇率限制:

So I am using the Facebook Graph API. The documentation specifies the rate limit is 600 calls per 600 seconds, per token & per IP. I don't understand what this means, so tell me if these examples will pass the valid rate limits:

示例1:
我有2个访问令牌(2个用户)。我打电话来自1个IP地址。我可以在600秒内拨打1200个总电话,每个访问令牌有600个电话吗?

Example 1: I have 2 access tokens (for 2 users). I am calling from 1 IP address. Can I make 1200 total calls in 600 seconds, 600 calls for each access token?

示例2:
我有1个访问令牌,我从两个IP地址(每个IP地址600个)呼叫,可以在600秒内拨打1200个总电话吗?

Example 2: I have 1 access token, I am calling from 2 IP addresses (600 per IP address), can I make 1200 total calls in 600 seconds?

推荐答案

It all depends on what kind of limit you're hitting. If it's a "User request limit reached" then using a different access token would suffice. However, there's also a global app-level API limit that (to my best understanding) doesn't take into account your DAU number.

一旦您点击应用程序请求限制达到,该应用程序生成的所有用户令牌将持续工作,甚至OAuth登录停止工作(!!!)。

Once you hit "Application request limit reached", all user tokens generated by that application cease to work for the duration, and even OAuth logins stop working (!!!).

这篇关于Facebook Graph API限制 - 每个令牌和每个IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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