Open Danilo-Pinto opened 3 years ago
I'm getting a login error, I would like to understand why?
my code:
const { urlSegmentToInstagramId } = require('instagram-id-to-url-segment'); const {IgApiClient} = require('instagram-private-api'); const data = { username, password, uri:urlSegmentToInstagramId('code of the post') } const ig = new IgApiClient(); ig.state.generateDevice(data.username); ( async() => { await ig.account.login(data.username,data.password); setInterval( async () =>{ await ig.media.comment({mediaId:data.uri,text:'Hey Hey'}); }, 10000 ); } )()
code error:
IgResponseError: POST /api/v1/accounts/login/ - 400 Bad Request; Please wait a few minutes before you try again
I get the same error. Is there anyone who can help?
I'm getting a login error, I would like to understand why?
my code:
code error: