Home Fields Requested Limits Media Types Returned in Instagram Graph API
Reply: 0

Fields Requested Limits Media Types Returned in Instagram Graph API

Nariman
1#
Nariman Published in 2018-02-11 13:18:44Z

Is this a bug or by design?

With the new Instagram Graph API, if you ask for a field that only some media types have (i.e. children or thumbnail_url), the overall results are restricted to only media of that type.

For example, the request below will return 21 results of varying types:

GET graph.facebook.com/.../tags?fields=media_id

But the following returns 5 where all 5 are of media_type='CAROUSEL_ALBUM':

GET graph.facebook.com/.../tags?fields=media_id,children{media_type,media_url}

The limit parameter has no impact on this behaviour.

Is there an efficient way to get everything (all media types) in a single call and still have conditional fields like children or thumbnail_url populated?

Doesn't this behavior, which also impacts GETs for individual media by id, effectively eliminate any bulk retrieval possibilities that involve multiple IDs across mix types?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299263 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO