Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get a list of users who have liked a media -> not working anymore

Tags:

instagram

I realized, that since Sunday, 8th December 2013 the Instagram API do not return the correct count of users who has liked a media.

Example: For a media with 500 likes the API returns a list with only about 120 users.

Before Sunday everything works well and I do not have any notification from Instagram changing there policy on this topic.

The official Instagram API Console returns the same amount of users like my app, and therefore I think the Instagram API has a bug or they changed the policy.

Do everybody noticed the same issue?

Thanks a lot for any feedback helping to solve the problem! Joseph

like image 297
techcharger Avatar asked Dec 09 '13 18:12

techcharger


People also ask

Why can'ti see everyone who liked an Instagram post?

If your account is set to private: Only your approved followers can see your posts, including any likes and comments. When you like a public post, your like will be visible to everyone and your username will be clickable below the post, but only approved followers can see your posts.

Are Instagram likes gone?

It's important to note that even when a user opts to hide likes on their account, likes do not disappear altogether. The total like count is hidden to followers, but users can still view who has liked a post in a couple taps.

How can I get a list of likes on Instagram?

Tap or your profile picture in the bottom right to go to your profile. Tap in the top right, then tap Your activity. Tap Interactions, then tap Likes.

Does Instagram only show 100 likes?

Here are the current measurements determined by IG: Below 100 likes: displayed as “others” Below 1,000 likes: displayed as “hundreds of others” Below 100,000 likes: displayed as “thousands of others”


2 Answers

Instagram appears to have changed their /likes API end point recently. The changes/errors I've noticed are:

  • The count parameter is ignored.
  • Up to a maximum of 120 likes are returned, but the number may be less due to likes from deleted accounts (these are included in the count to 120, but not included in the returned data)
  • The pagination feature of the likes endpoint is no longer being returned (ie only 1 page of likes data is being returned).
  • With an authorised access_token (ie from the user's login), you are unable to retrieve the likes information from media on a private account.

Previously, up to 1000 likes were available per photo via the pagination process.

Like you, I have seen no official announcement of the changes in their API. I continue to be disappointed by their serial lack of communication and constant removal of features from the API.

like image 105
mykel Avatar answered Oct 16 '22 11:10

mykel


Instagram has always limited the number of likes returned in the {media_id}/likes endpoint to ~100. This is to reduce load on their servers (and to protect the API client from not crashing trying to load potentially thousands of likers in the resultant payload). They do not paginate the list of likers either, unfortunately.

Note though, that in the case where likes exceeds 120, that the number of likers returned in the /likes endpoint is entirely different than the count property returned on the {media_id} endpoint itself.

For example:

https://api.instagram.com/v1/media/607348114809499642_58658/likes

returns only 120 likes in the array, whereas

https://api.instagram.com/v1/media/607348114809499642_58658

indicates the count is 6930

Update

It appears these results may now be paginated as they appear in the official app paginated. However, as TomRoggero points out below, that may not actually be available in the API.

like image 41
brandonscript Avatar answered Oct 16 '22 11:10

brandonscript