“Average Daily Active Users” for Facebook API Limits

﹥>﹥吖頭↗ 提交于 2020-01-03 03:11:28

问题


I've suddenly started running into API limits. I've been restricting my API calls to: number of users * 200, but I'm getting error #4 about once per day.

This calculation was based on the docs from end of 2015 that said number of users your app had yesterday, plus new logins today.

But it looks like that has changed to:

The number of users your app has is the average daily active users of your app, plus today's new logins

Can someone explain to me what "average daily active users" is? And is there a way I can get access to this number?


Some information on what I'm doing:

My app fetches pages and posts from pages. To do this, I hit the Facebook API to get user's liked pages. Then each hour, I fetch posts from pages the system knows about.

I do the following:

  • Batch requests (50 per batch)
  • I'm only fetching posts since the last fetch (using since, until and limit params. 90% of the requests return 0 posts)
  • I'm only fetching posts from pages my users like
  • I'm using my app token for these requests
  • I limit the number of calls per hour to users * 200

回答1:


Batch Requests don´t reduce API limits, they are only faster, that´s all. That being said: You wrote that you are using an "App Token" for the requests - you should use a "User Token" instead. It´s still a LOT of calls though, the only thing you can do in addition is to reduce the amount of API calls.




回答2:


I found this endpoint in the documentation: https://developers.facebook.com/docs/graph-api/reference/application/

I tested this via

https://graph.facebook.com/v2.10/<my_app_id>?access_token=<my_access_token>&fields=daily_active_users

And it returned

{
    "daily_active_users": "152",
    "id": "<my_app_id>"
}

It is not average daily active users though



来源:https://stackoverflow.com/questions/37262580/average-daily-active-users-for-facebook-api-limits

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!