yatsenkolesh / instagram-nodejs

Simple library for auth, get followers, search by hashtags and locations, like posts, follow, get user feed of instagram with nodejs
MIT License
317 stars 74 forks source link

getUserFollowers and getUserMedia return empty #50

Open irTopCoders opened 5 years ago

irTopCoders commented 5 years ago

I try this code:

let userData = await Instagram.getUserDataByUsername('cristiano');

let followers = await Instagram.getUserFollowers(userData.graphql.user.id);

console.log('followers:\n' + followers);

let userMedia =await Instagram.getUserMedia(userData.graphql.user.id);

console.log('userMedia:\n' + userMedia);

i get correct result of userData but followers and userMedia is empty. other functions like searchBy and getFeed work correctly.

vichesheiko commented 5 years ago

same this issue :(

yatsenkolesh commented 5 years ago

@tageio Hi. Do you correctly authenticate?

irTopCoders commented 5 years ago

@tageio Hi. Do you correctly authenticate?

Yes, Authentuication is correct. other methods works fine. but getUserFollowers and getUserMedia return empty.

havenchyk commented 5 years ago

@yatsenkolesh yeah, everything is correct, query returns an empty array

Bestfastfire commented 4 years ago

Same here

VolodymyrKornetskyi commented 4 years ago

@Bestfastfire @havenchyk You can try to change t.headers._headers['set-cookie'] on t.headers.raw()['set-cookie']

SaraSlm commented 4 years ago

I have same problem with getUserMedia method. getUserFollowers works fine for me