Answer the question
In order to leave comments, you need to log in
How can I see if I liked a photo on Instagram?
I use the Instagram API in my Android app.
I get an access_token.
In the documentation, I looked at how a request for getting likes by media_id is formed.
In response, json comes in which, among other things, there is an array of users who have set likes.
Well if there were all users. But there are only 119 of them, and you can not find yourself.
The question is, how can I tell if I have like or not?
Who faced such problem?
Answer the question
In order to leave comments, you need to log in
Use the My Likes
hotspot .
There is pagination.
You cache the entire collection of liked photos in a background thread in the database.
When necessary, look in the database for the id of the photo you are interested in. If there is a match, then like.
Yes, it takes a long time to cache and you will have to update it periodically, but it doesn’t seem to be any other way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question