Skip to content

user_followers or user_follows return empty array in result #113

@felipe-muner

Description

@felipe-muner

I did:
step1
https://api.instagram.com/oauth/authorize/?client_id=ID&redirect_uri=http://localhost&scope=basic+public_content+follower_list+comments+relationships+likes&response_type=code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions