mckelvey / instagram-node-lib

The Instagram Node Lib is a helper library for node that makes communicating with the Instagram API easy.
http://david.mckelveycreative.com/
Other
303 stars 49 forks source link

tags.recent is returning an empty array #43

Closed zapplebee closed 8 years ago

zapplebee commented 8 years ago
Instagram.tags.info({ 
  name: 'blue',
  complete: function(data) {
    console.log(data);
  }
});

Instagram.tags.recent({ 
  name: 'blue',
  complete: function(data) {
    console.log(data);
  }
});

is outputting

{ media_count: 79274529, name: 'blue' }
[]

This seems to be the correct syntax according to the documentation.

zapplebee commented 8 years ago

Never mind, after reading the documentation for the Instagram API more carefully, I came across this.

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

Sandbox Mode • Instagram Developer Documentation "API Behavior"

So if your in Sandbox mode, you won't be able to experiment with any public data.