Facebook应用程序被扼制,什么是gr:post:User / external_edge [英] Facebook app being throttled, what is gr:post:User/external_edge

查看:207
本文介绍了Facebook应用程序被扼制,什么是gr:post:User / external_edge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序正在被限制,我们正在获得

  {
error:{
message:(#4)达到申请请求限制,
type:OAuthException,
code:4
}
}

应用程序 - > - > 开发人员 - > 活动&错误我们看到

 限制
应用程序是无限制的。

API Throttling
在指定期限内无。

所以看起来不像我们应该得到扼制,但是我可以看到一个警告,

 呼叫太CPU密集 -  2小时38分钟
方法分数预算

gr:post:User / external_edge 109%
gr:post:用户/分数1.8%
gr:get:User / external_edge 1.8%
gr:get: / fql 1.2%
ui:feed:async:get:0.43%
gr:post:OpenGraphAction / commen 0.15%
ui:apprequests:iframe:get:0.08%
gr :删除:帖子0.04%
gr:delete:0.02%
ui:feed:async:post:0.02%

我认为这意味着我们经常发布给User / external_edge ...但是我不知道User / external_edge是什么 - 我如何找到这个? >

在API被切断之前,我们还应该收到一封电子邮件或警告吗?我们需要做些什么来得到无节制的?

解决方案

限制自动重置一段时间后,我认为这是一个600秒的滚动计算限制的窗口,但如果实际达到限制,则可能会将阻塞扩展到3600秒;不幸的是,API响应中没有办法看到您对CPU和呼叫限制的接近程度,特别是CPU限制难以预测,因为呼叫需要大量资源来处理它们。



gr:post:User / external_edge 是Open Graph操作,其他方法以连接名称命名(例如 gr:post:User / scores 是一个Graph API( gr )POST请求( post )针对用户对象的分数连接



如果您的应用程序受到限制,并且每个用户不会发布大量操作,请检查正在使用哪个访问令牌来发布帖子;如果是App Access令牌,则使用用户访问令牌替代


Our app is currently being throttled, we are getting

{
  "error": {
    "message": "(#4) Application request limit reached", 
    "type": "OAuthException", 
    "code": 4
  }
}

On App->Insights->Developer->Activity & Errors we are seeing

Restrictions
App is unrestricted.

API Throttling
None during specified period.

So it doesn't look like we should be getting throttled, but I can see a warning,

Calls Are Too CPU Intensive  - 2 hours, 38 minutes
Method  Fraction of Budget

gr:post:User/external_edge  109%
gr:post:User/scores 1.8%
gr:get:User/external_edge   1.8%
gr:get:/fql 1.2%
ui:feed:async:get:  0.43%
gr:post:OpenGraphAction/commen  0.15%
ui:apprequests:iframe:get:  0.08%
gr:delete:Post  0.04%
gr:delete:  0.02%
ui:feed:async:post: 0.02%

I assume this means that we're posting too often to User/external_edge... but I don't know what User/external_edge is -- how do I find this out?

Also shouldn't we have gotten an email or warning before being cut off from the API? What do we need to do to get unthrottled?

解决方案

The limits reset automatically after a while, i think it's a 600 second rolling window for calculation of the limit, but might extend the blocking to 3600seconds if the limit is actually reached; Unfortunately there's no way in the API response to see how close you are to the CPU and call limits, and the CPU limit in particular is hard to predict because calls have vastly varying resources needed to process them.

gr:post:User/external_edge is Open Graph actions, the other methods are named after the name of the connection (e.g. gr:post:User/scores is a Graph API (gr) POST request (post) against the scores connection of the User object)

If your app is being throttled on these and you're not posting a large number of actions per user, check which access token is being used to make the posts; if it's an App Access Token, use the User Access Token for the user making the posts instead

这篇关于Facebook应用程序被扼制,什么是gr:post:User / external_edge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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