Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit d811ada

Browse files
authored
Add "new" API Throttle code
https://developers.facebook.com/docs/graph-api/advanced/rate-limiting At the end of this page you see list of rate limiting code. I keep code "341" cause in an other page of the docs : https://developers.facebook.com/docs/graph-api/using-graph-api#errors We can see 341 code
1 parent 2f9639c commit d811ada

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Facebook/Exceptions/FacebookResponseException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static function create(FacebookResponse $response)
7070
{
7171
$data = $response->getDecodedBody();
7272

73+
7374
if (!isset($data['error']['code']) && isset($data['code'])) {
7475
$data = ['error' => $data];
7576
}
@@ -113,7 +114,9 @@ public static function create(FacebookResponse $response)
113114
// API Throttling
114115
case 4:
115116
case 17:
117+
case 32:
116118
case 341:
119+
case 613:
117120
return new static($response, new FacebookThrottleException($message, $code));
118121

119122
// Duplicate Post

0 commit comments

Comments
 (0)