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

Can't get CSRF #31

Open
yogiw opened this issue Aug 9, 2018 · 12 comments
Open

Can't get CSRF #31

yogiw opened this issue Aug 9, 2018 · 12 comments

Comments

@yogiw
Copy link

yogiw commented Aug 9, 2018

I used this code

`let Instagram = require('instagram-nodejs-without-api');

Instagram = new Instagram()

Instagram.getCsrfToken()
.then((csrf) =>
{
Instagram.csrfToken = csrf;
console.log(csrf)
}).then(() =>
{
Instagram.auth('----', '-----').then(sessionId =>
{

Instagram.sessionId = sessionId

Instagram.getUserDataByUsername('----').then((t) =>
{
  Instagram.getUserFollowers(JSON.parse(t).graphql.user.id).then((t) =>
  {
    console.log(t); // - instagram followers for user "username-for-get"
  })
})

})
})`

it's always logged empty string ("").

@yatsenkolesh
Copy link
Owner

Hello. Please check this in 1.0.0 version.

@yatsenkolesh
Copy link
Owner

It's working ? Your issue is resolved ?

@yogiw
Copy link
Author

yogiw commented Aug 10, 2018

Isn't resolved yet. When I log the Instagram, It's returned undefined.

@yatsenkolesh
Copy link
Owner

what version of package do u use ?

@yogiw
Copy link
Author

yogiw commented Aug 10, 2018

"instagram-nodejs-without-api": "^1.0.0",

Or maybe I did something wrong?

@yatsenkolesh
Copy link
Owner

Yeah. This is problem and I will resolve it soon.

@yatsenkolesh
Copy link
Owner

We are fixed! I updated the version. Try to use 1.0.3, but if u will have challenge required exception - push me.

@yogiw
Copy link
Author

yogiw commented Aug 19, 2018

Yeah, I got the CSRF but It's always said that the authentication was error and challange required. what is that?

@yildirimatcioglu
Copy link

same issue.

@yildirimatcioglu
Copy link

I can get token but can not get sessionId, it says "Instagram authentication failed (challenge required erro)"

@yatsenkolesh
Copy link
Owner

@yogiwisesa try to change account or auth from a web interface. Instagram is changing API and we should prepare functional for instagram challenges.

@yogiw
Copy link
Author

yogiw commented Aug 20, 2018

I changed my password, but still isn't working.

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

3 participants