*.media_popular function using non-existant endpoint
Opened this issue · 1 comments
MPolymath commented
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/)
- /media/media-id
- /media/shortcode/shortcode
- /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
fsebbah commented
I have the same problem. It seems the package is out.