Hey guys,
Can anyone pls share code example of how to set profile picture?
I've tried to use ig.account.changeProfilePicture('path_to_picture') but id didnt worked.
So i guess this method doesn't work anymore
Tried to use this
const rStream = createReadStream('./profile_pic')
await ig.account.changeProfilePicture(rStream).catch(err=>console.log(err))
and I'm getting
IgResponseError: POST /api/v1/accounts/change_profile_picture/ - 400 Bad Request;
Maybe instagram changed something?
Maybe instagram changed something?
This is right. Instagram switched to the fb-uploader (with uploadIds), so the method broke.
You can see the new, working method here on my fork.
If you want to use it now, replace this.client with ig and copy it into your project.
Maybe instagram changed something?
This is right. Instagram switched to the fb-uploader (with uploadIds), so the method broke.
You can see the new, working method here on my fork.
If you want to use it now, replacethis.clientwithigand copy it into your project.
Awesome, thanks a lot, works perfect :)
Most helpful comment
This is right. Instagram switched to the fb-uploader (with uploadIds), so the method broke.
You can see the new, working method here on my fork.
If you want to use it now, replace
this.clientwithigand copy it into your project.