Closed jeybin closed 4 years ago
Tried Using Instagram::withCredentials(self::USERNAME, self::PASSWORD, new Psr16Adapter('Files')) solved the issue
Hi, I did it but after that it gives me error code 200
On Mon, Oct 12, 2020 at 12:23 PM Jeybin M George notifications@github.com wrote:
Closed #788 https://github.com/postaddictme/instagram-php-scraper/issues/788.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/postaddictme/instagram-php-scraper/issues/788#event-3865680265, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHRSC3ODZMGUU6INVA4WDDSKLDI3ANCNFSM4SMOA5QQ .
-- Zubair Sultan Skyward Manager American International School - Riyadh https://www.google.com/url?q=https%3A%2F%2Fwww.aisr.org&sa=D&sntz=1&usg=AFQjCNFdGgwUctCn41yHhAu9Bwvk_-UTiw Box 990, Riyadh 11421, KSA Tel: +966-11-459-7500 Fax: +966-11-459-7755 https://www.google.com/url?q=https%3A%2F%2Fwww.facebook.com%2Faisriyadh&sa=D&sntz=1&usg=AFQjCNFhP9DAFozi0eHNGzoHOnn4EHiaOA https://www.google.com/url?q=https%3A%2F%2Ftwitter.com%2FAISRiyadh&sa=D&sntz=1&usg=AFQjCNHD1XqrFNPcxAJqjjGOh-ER4NcWZQ https://www.google.com/url?q=https%3A%2F%2Fwww.instagram.com%2Faisriyadh%2F&sa=D&sntz=1&usg=AFQjCNH_VLa1x29rO8cvTdbFphQL3jP1-w This email message is intended for the person(s) entitled as indicated in the “To” field of the email. E-mail messages to recipients of the American International School - Riyadh may contain information that is confidential and legally privileged. Please do not copy or forward this message. If you have received this email in error, please delete it from your system without copying/forwarding and notify the sender immediately, so that our records can be corrected. All American International School - Riyadh email correspondence honors AIS-R’s Partnership for Success expectations.
When im trying to fetch the followers of a public account getting the response as { "code": 400, "message": "Failed to get followers of account id 2225214518. The account is private.", }
public function getInstagramFollowers($userName,$count=20){ try { $instagram = InstagramClient::connect(); $account = $instagram->getAccount($userName); $account_id = $account->getId(); dd($instagram->getFollowers($account->getId(), 1000, 100, true)); } catch (Exception $exception) { return $this->errorCatch($exception); } }
inside : instagram-php-scrapper > src > InstagramScraper > Instagram.php > function getPaginateFollowers() when i tried to print the
$jsonResponse
got the response as belowarray[ "data" => array [ "user" => array [ "edge_followed_by" => array [ "count" => 541 "page_info" => array[ "has_next_page" => false "end_cursor" => null ] "edges" => [] ] ] ] "status" => "ok" ]