简体   繁体   English

Facebook API 速率限制如何为应用访问令牌工作?

[英]How does Facebook API Rate Limit work for App Access Token?

I'm working on a project where an app displays events in the near surrounding based on the personal preferences of the user.我正在开发一个项目,其中应用程序根据用户的个人喜好在附近显示事件。 We plan on getting the events from the Facebook Graph API using this approach .我们计划使用这种方法从 Facebook Graph API 获取事件。 Due to Facebook's API changes it is much more complicated to search for events in a particular city.由于 Facebook 的 API 更改,搜索特定城市中的事件要复杂得多。 Therefore it requires much more API calls than before and i'm worried about FB rate limit.因此它需要比以前更多的 API 调用,我担心 FB 速率限制。

We want to get the information about events by calling the Graph API with our app access token from our server and then store the data temporarily in our own database.我们希望通过从我们的服务器使用我们的应用程序访问令牌调用 Graph API 来获取有关事件的信息,然后将数据临时存储在我们自己的数据库中。 So every time a user searches for events in our app, the client gets the information from our database.因此,每次用户在我们的应用程序中搜索事件时,客户端都会从我们的数据库中获取信息。 Moreover the user can (but don't has to) log-in with his Facebook account in order to provide us more information about him.此外,用户可以(但不必)使用他的 Facebook 帐户登录,以便向我们提供有关他的更多信息。 We want to use the user's access token to call the API in order to get the user's likes.我们希望使用用户的访问令牌来调用 API 以获取用户的赞。

I've read the FB documentation about the rate limits and some posts here on the site.我已经阅读了关于速率限制的 FB 文档和网站上的一些帖子。 Apparently FB calculates the number of calls based on the active users (200 calls per user every hour).显然,FB 是根据活跃用户(每个用户每小时 200 次呼叫)计算呼叫次数的。 It says that它说

"These limits apply to calls made using any access token other than a page access token" “这些限制适用于使用除页面访问令牌以外的任何访问令牌进行的调用”

ergo they also apply to the app access token.因此,它们也适用于应用程序访问令牌。 Additionally in the FB policy it says something about 100M calls per day.此外,在 FB 政策中,它说每天大约有 1 亿次调用。

So my questions are:所以我的问题是:

  1. How does the rate limit work on a per user basis if I am using my App Access Token?如果我使用我的应用程序访问令牌,速率限制如何以每个用户为基础工作?
  2. To what token does the "100M" number belong? “100M”数字属于什么令牌? Is it an overall number for all tokens used by the app?它是应用程序使用的所有令牌的总数吗?

A similiar question has been posted here some time ago but didn't receive any answers.前段时间在这里发布了一个类似的问题,但没有收到任何答案。 I hope maybe someone got new information since then.我希望从那时起有人可以获得新信息。 An answer to these questions is crucial to our project, so bear with me if you've read that question before.这些问题的答案对我们的项目至关重要,所以如果您以前读过这个问题,请耐心等待。

Thanks in advance!提前致谢!

Please check this Facebook Rate Limits请检查此Facebook 速率限制

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM