0

Here is the situation i am working on. In our application different users can log in to Instagram and upload the media. I have collection of all the media-id uploaded by different users.Now I want to get number of likes on each of the media uploaded. I read the documentation on instagram developer and i have few questions to clarify.

  1. Is it really necessary to get authenticated in order to get number of likes on any media. ?

  2. If yes then can i access number of likes on the media uploaded by other users ? OR API can only access the details of the account for which Token has been generated ?

  3. Is it even possible to get the number of likes without generating authentication token using media-id ?

Platform is ASP.NET MVC. Please share your knowledge on this and point me to right direction.

tereško
  • 58,060
  • 25
  • 98
  • 150
Sachin Trivedi
  • 2,033
  • 4
  • 28
  • 57

1 Answers1

0

From Instagram's Changelog as of Nov 17, 2015:

All API endpoints require a valid access_token

You'll notice this on their Like Endpoints documentation:

Parameters access_token

A valid access token.

Every API call regarding likes (and any endpoint for that matter) requires an access token

Community
  • 1
  • 1
terbubbs
  • 1,512
  • 2
  • 25
  • 48
  • Thanks. I saw this. I am concerned that i do have lot of Media-id for which i need to get the number of likes. And also the big deal is i need to generate this access_token as and when expired without user intervention. Is there any way to do this ? – Sachin Trivedi Apr 01 '16 at 16:53
  • @SachinTrivedi would this help to answer your question completely? http://stackoverflow.com/a/22780703/4498937 – terbubbs Apr 01 '16 at 17:59
  • thanks for your comment. Still i have 2 things to figure out. If token expires is there any possibility that aerver side code can generate new token ? Another thing is api rate limit. Is there any way i can make as much calls as i need to api ? – Sachin Trivedi Apr 01 '16 at 19:02
  • @SachinTrivedi you will do some research yourself. you need code that will check if the token you made the request with is valid; if it isn't, it will return an API error -> `error_type=OAuthAccessTokenError`. you can check this and renew your token if necessary server side. There are specific endpoint rate limits, but altogether it is 5000/hour in Live mode. – terbubbs Apr 01 '16 at 19:16