totemstech / instagram-node

NodeJS driver for the instagram API
649 stars 122 forks source link

method user_followers not returning followers #72

Open pablohpsilva opened 9 years ago

pablohpsilva commented 9 years ago

I'm following the instructions on the gitpage and when I try to use this method:

user_followers(userId, function(...){})

The "users" array is always empty. My instagram account has around 190 followers in it. Why is it returning an empty array, then?

My configuration object is:

var config = {
    //lob_api_key: 'xxxx',
    instagram_redirect_uri: 'http://localhost:3000/handleauth',
    instagram_client_id: 'idd',
    instagram_client_secret: 'sss',
    instagram_scopes: { scope: ['basic', 'public_content', 'follower_list', 'relationships', 'likes'], state: 'a state' }
};

full code:

api.user_followers('USERID', function(err, users, pagination, remaining, limit) {
    if(err) res.status(500).json(err.body);
    res.status(200).json(users);
})
liadz commented 7 years ago

You have the same problem as I was having. This is our answer: https://stackoverflow.com/questions/41286489/instagram-api-not-returning-followers