简体   繁体   中英

Filter media of followers list using private Instagram API in PHP

I'm using the Instagram private API to get the followers list of any user, and I want to filter users who have 10 or more media.

The result is an array of users with 10 or more media. However, I received a response

InstagramAPI\\Response\\FriendshipsShowManyResponse: Invalid user list.

I think my problem is in the following snippet. How can I fix this?

  $user_ids = [];
  foreach ($users as $i => $user) {
      if($user->getMediaCount()>10) {
           $user_ids[] = $user->getPk();
      }
  }

This is deprecated by Instagram. See: https://www.instagram.com/developer/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM