Get like_count & comments_count for Instagram Media object with Facebook Instagram API

Viewed 5545

I'm trying to build a simple widget that helps users to get their Instagram feed on their websites. I have already got my FB app approved for instagram_graph_user_profile and instagram_graph_user_media permissions.

Now, whenever I try to get the number of likes/comments through the below API call, I get data for all the fields, except like_count and comments_count.

https://graph.instagram.com/me/media?fields=id,media_type,media_url,username,comments_count,like_count,timestamp,permalink,comments_count,caption,children,thumbnail_url&access_token={access_token}

I'm not sure if I'm missing something. So, any advice would be appreciated.

1 Answers
Related