A
A
afna2015-08-28 09:46:51
Java
afna, 2015-08-28 09:46:51

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.
ab9726b990b842599304e987753f5956.PNG
Well if there were all users. But there are only 119 of them, and you can not find yourself.
565e6baeb1e449b88284eee4d1525cc4.PNG
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

1 answer(s)
D
Dmitry Bolshakov, 2015-08-28
@enq3

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 question

Ask a Question

731 491 924 answers to any question