From 9c8694ae9472bf4e7815c93d0650a1d033d9e9af Mon Sep 17 00:00:00 2001 From: Eduardo Bizarro Date: Thu, 2 May 2019 17:16:27 -0300 Subject: [PATCH] instagram --- src/Entities/InstagramAccounts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entities/InstagramAccounts.php b/src/Entities/InstagramAccounts.php index c21f315..f2e3e47 100644 --- a/src/Entities/InstagramAccounts.php +++ b/src/Entities/InstagramAccounts.php @@ -24,10 +24,10 @@ class InstagramAccounts * @throws \Edbizarro\LaravelFacebookAds\Exceptions\MissingEntityFormatter * @see https://developers.facebook.com/docs/marketing-api/guides/instagramads */ - public function all(array $fields, $accountId): Collection + public function all(array $fields, string $accountId): Collection { return $this->format( - (new FbAdAccount($accountId))->getInstagramAccounts($fields) + (new FbAdAccount)->setId($accountId)->getInstagramAccounts($fields) ); }