1
據https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0,如何找出對圖形API的限制參數的邊界
Some edges have an upper maximum on the limit value, for performance reasons. We will return the correct pagination links if that happens.
爲https://graph.facebook.com/20531316728/feed?limit=500&access_token=CAACE最近的響應...是
{
"error": {
"message": "(#100) The 'limit' parameter should not exceed 250",
"type": "OAuthException",
"code": 100
}
}
但是(如文檔)一些端點允許limit=500
。該響應的錯誤代碼爲100
,錯誤類型爲OAuthException
,但該消息講述了不同的故事。檢測HTTP 400錯誤請求響應是否是因爲限制參數的好方法是什麼?