Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_followers or user_follows return empty array in result #113

Open
felipe-muner opened this issue Apr 13, 2017 · 7 comments
Open

user_followers or user_follows return empty array in result #113

felipe-muner opened this issue Apr 13, 2017 · 7 comments

Comments

@felipe-muner
Copy link

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

@samdoidge
Copy link

I believe this is not down to the library, but due to Instagram stopping this endpoint altogether: https://www.instagram.com/developer/endpoints/

@felipe-muner
Copy link
Author

felipe-muner commented Apr 28, 2017 via email

@samdoidge
Copy link

Yes, I couldn't see a way to get these lists from the API.

@s0kil
Copy link

s0kil commented May 8, 2017

@statefull
Copy link

Use my fork.. https://github.com/statefull/instagramapi I have all the problems solved.

@felipe-muner
Copy link
Author

felipe-muner commented May 11, 2017 via email

@rogercastaneda
Copy link

hi @statefull, i tried your fork but i'm still getting an empty result and i had to check the code to figure out that i needed to add the token like parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants