1

I'm Trying to Give user All media from instagram with this code in Guzzle:

 $res = $client->request('GET', 
'https://api.instagram.com/v1/users/self/media/recent/?access_token='. 
 $access_token);

But Instagram send me just 20 media.How I can fix it?

Honey
  • 207
  • 1
  • 3
  • 15
  • 2
    Possible duplicate of [Instagram API: How to get all user media?](https://stackoverflow.com/questions/10881511/instagram-api-how-to-get-all-user-media) – Dalton Cézane Jul 20 '17 at 07:05
  • @Dalton How I can Add count after access_token Variable in my code? – Honey Jul 20 '17 at 07:22

1 Answers1

1

See this link to solve your problem:

Instagram API: How to get all user media?

You have to use pagination, getting 20 objects per time.

Dalton Cézane
  • 3,672
  • 2
  • 35
  • 60