From 32ad72bc8adab7722236ef752535cccaa9689874 Mon Sep 17 00:00:00 2001 From: Kat Rossiter Date: Thu, 20 Jun 2019 13:12:24 -0700 Subject: [PATCH 1/2] =?UTF-8?q?Add=20code=20368=20("You're=20temporarily?= =?UTF-8?q?=20restricted=20from=20resharing=20posts=20until=E2=80=A6")=20a?= =?UTF-8?q?s=20a=20ThrottleException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Facebook/Exceptions/FacebookResponseException.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Facebook/Exceptions/FacebookResponseException.php b/src/Facebook/Exceptions/FacebookResponseException.php index e51f1c840..7cffa22a5 100644 --- a/src/Facebook/Exceptions/FacebookResponseException.php +++ b/src/Facebook/Exceptions/FacebookResponseException.php @@ -124,6 +124,7 @@ public static function create(FacebookResponse $response) case 17: case 32: case 341: + case 368: case 613: return new static($response, new FacebookThrottleException($message, $code)); From 49a834cba84a65a0b020452b96a5a99348dedb9e Mon Sep 17 00:00:00 2001 From: Kat Rossiter Date: Thu, 20 Jun 2019 15:55:26 -0700 Subject: [PATCH 2/2] Add error 1500 "Invalid URL" as ClientException --- src/Facebook/Exceptions/FacebookResponseException.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Facebook/Exceptions/FacebookResponseException.php b/src/Facebook/Exceptions/FacebookResponseException.php index 7cffa22a5..bcbabce83 100644 --- a/src/Facebook/Exceptions/FacebookResponseException.php +++ b/src/Facebook/Exceptions/FacebookResponseException.php @@ -130,6 +130,8 @@ public static function create(FacebookResponse $response) // Duplicate Post case 506: + // Invalid URL + case 1500: return new static($response, new FacebookClientException($message, $code)); }