-
Notifications
You must be signed in to change notification settings - Fork 119
Description
step2
curl -F 'client_id=id'
-F 'client_secret=secret'
-F 'grant_type=authorization_code'
-F 'redirect_uri=http://localhost'
-F 'code=97ca5f5d754d45d19ed8cf7f764bb1b9' \ // generate in step1
https://api.instagram.com/oauth/access_token
my index.js:
var ig = require('instagram-node').instagram();
ig.use({ access_token: 'access_token' }); // generate in step2
ig.user('145625639', function(err, result, remaining, limit) {
debugger;
console.log(result);
});
But when i try, the code below don't work =(
//this return always a empty array
var hdl = function(err, users, pagination, remaining, limit) {
console.log(users);
debugger;
if(pagination.next) {
pagination.next(hdl); // Will get second page results
}
};
ig.user_followers('145625639', hdl);
Anyone can help me?
Many thanks