totemstech/instagram-node

*.media_popular function using non-existant endpoint

Opened this issue · 1 comments

Issue

The path that is being visited by function .media_popular() is no longer an endpoint at https://api.instagram.com

method: "GET"
path: "/media/popular"

Available media endpoints at https://api.instagram.com: (https://www.instagram.com/developer/endpoints/media/)

  1. /media/media-id
  2. /media/shortcode/shortcode
  3. /media/search

Steps to reproduce

var api = require('instagram-node').instagram()

api.use({
client_id: ''
client_secret:''
})

api.media_popular(function(err, medias, remaining, limit) {
if (err) {
console.log('ERROR: ' + err)
} else {
console.log('POPULAR MEDIA: ' + medias)
}
});

Expected behavior

For the medias to be displayed in the console

Actual behavior

Console displays ERROR: SyntaxError: Unexpected token <

Server Specification

OSX Yosemite

I have the same problem. It seems the package is out.