Instagram.sessionId is undefined every time.
See original GitHub issueDoes this package still work for anyone?
Here is a (slightly changed) example from the README:
Instagram.getCsrfToken()
.then((csrf) => {
Instagram.csrfToken = csrf;
})
.then(() => {
return Instagram.auth(this.config.username, this.config.password).then(
(sessionId) => {
console.log(sessionId); // undefined
Instagram.sessionId = sessionId;
// ...
}
);
})
.catch(console.error);
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ReferenceError: sessionID is not defined · Issue #53 - GitHub
I had this issue when run the basic code: ReferenceError: sessionID is not defined at Instagram.auth.then ...
Read more >session id shows as undefined node.js - Stack Overflow
I am trying to setup authenticated socket calls to match sockets with each user. I have this code that does it for the...
Read more >Use an alternative login method using the SessionID cookie
The iMediamatic plugin was updated, now it is also able to use the SessionID Instagram cookie to log in. For details, watch this...
Read more >How to get Instagram session ID - CyberSEO Pro
Your session ID will be valid for all the time you are logged into Instagram, so don't logout. If you don't want to...
Read more >Error: Cannot read properties of undefined (reading 'cometd ...
sessionId = data; this.error = undefined; loadScript(this, cometdlwc).then(() => { console.log('script loaded yippie!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any references or documentation on the new auth method and url? I assume this is now done use GraphQL? Maybe i could open another pull request if i get this to work.
Current workaround: copy your csrf and sessionid cookies from the instagram.com page after using their official login and use these in this API.
I have the same problem.