Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No followers - getEndCursor() is null #347

Open
Nestrot opened this issue Nov 18, 2022 · 7 comments
Open

No followers - getEndCursor() is null #347

Nestrot opened this issue Nov 18, 2022 · 7 comments
Assignees
Labels
need-investigations Need investigations to classify

Comments

@Nestrot
Copy link

Nestrot commented Nov 18, 2022

Version(s) affected: 6.16.4

Description
Followers are no longer output because the endcursor is null:

object(Instagram\Model\FollowerFeed)#7 (4) {
["count":"Instagram\Model\FollowerFeed":private]=> int(957)
["hasNextPage":"Instagram\Model\FollowerFeed":private]=> bool(false)
["endCursor":"Instagram\Model\FollowerFeed":private]=> NULL
["users":"Instagram\Model\FollowerFeed":private]=> array(0) {
}
}

Fatal error: Uncaught TypeError: Argument 2 passed to Instagram\Api::getMoreFollowers() must be of the type string, null given

How to reproduce

  $followersFeed = $this->api->getFollowers(self::IG_USER_ID);
 
  var_dump($followersFeed);
  
  do {
    $followersFeed = $this->api->getMoreFollowers(self::IG_USER_ID, $followersFeed->getEndCursor());
    sleep(2);
  } while ($followersFeed->hasNextPage());
@Nestrot Nestrot added the need-investigations Need investigations to classify label Nov 18, 2022
@babeuloula
Copy link

Hello,

Happy new year to all of you.

I've the same issue. When I inspect requests from Instagram website, the request is :

https://www.instagram.com/api/v1/friendships/XXXX/followers/?count=12&search_surface=follow_list_page

Maybe this can help.

@melnichukme
Copy link

problem solved?

@babeuloula
Copy link

@melnichukme No, the problem is still here

This is the graphql response :

image

@melnichukme
Copy link

@babeuloula problem with instagram api?

@babeuloula
Copy link

Yes with this call :

$endpoint = InstagramHelper::URL_BASE . 'graphql/query/?query_hash=' . InstagramHelper::QUERY_HASH_FOLLOWERS . '&variables=' . json_encode($variables);

@ElNelyo
Copy link

ElNelyo commented Jan 7, 2024

Hello, got the same issue , followers is empty

@esedArk
Copy link

esedArk commented Jan 19, 2024

It happens to me with getMedias(), it returns an empty array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-investigations Need investigations to classify
Projects
None yet
Development

No branches or pull requests

6 participants