Understanding real time Instagram api - node.js

i followed the Instagram-Developers-Site instructions step by step and was able to subscribe to the hashtag. Now that my node.js server is up and running, I will swap req.body

to see what I get. This is the POST requests Instagram sends me:

[ { changed_aspect: 'media', 
subscription_id: 2844823, 
object: 'tag', 
object_id: 'food', 
time: 1359561407 } ]

      

This is also as described in the manual, now my question is: What can I do with it? I mean, I expected the JSON-Object to contain all the data needed to display the photo on my page. For example, such parameters could be: Name, PicURL, Comments, Location, but all I get is above. So can you tell me how useful this information I am receiving is?

So, a short summary: - I want to display pictures of a specific tag on my page - using Node and Express - PubSub works - I get that there is a new post, but where can I get information about this particular picture?

+3


source to share


2 answers


This JSON is only a notification that there is a new photo. Then you need to make a request using the instagram api to get the latest photo.



api.instagram.com/v1/tags/[your tag]/media/recent?count=1&.....

      

+1


source


You can check out this Instagram realtime API demo app for some inspiration: https://github.com/Instagram/Realtime-Demo



+1


source







All Articles