node.js - Issue using instagram-node -



node.js - Issue using instagram-node -

i issue using module instagram-node, i'm not able medias... there limit , don't want limit, want medias of current user...

my code :

self.api.user_media_recent(userid, function(err, medias, pagination, remaining, limit){ console.log(medias.length); // 35... should 200 or that... medias.foreach( function(media){ var url = media.images.thumbnail.url; }); response.render('home/photos', {medias: medias, type: request.query.state}); });

based on documenation, result paginated, need following:

var hdl = function(err, result, pagination, remaining, limit) { // implementation here if(pagination.next) { pagination.next(hdl); // sec page results } }; ig.tag_media_recent('test', hdl);

node.js instagram

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -