mr0re1 / pynstagram

Python library that allows you to upload photos to instagram
145 stars 34 forks source link

Doesn't work. #13

Closed mnns closed 8 years ago

mnns commented 8 years ago

It uploads the image, gets approved. If you refresh your Instagram feed in the web, you will see the uploaded picture for a sec - after which it is immediately deleted.

Thanks

mr0re1 commented 8 years ago

Tried to upload a photo, works fine for me, picture wasn't removed. Assume that cause of deletion may be your picture. Is it abusive, too big, too small, etc ?

mnns commented 8 years ago

The thing is I get an approval from Instagram both on my Python and C# code, the picture uploads and then after 2 seconds it deletes itself. I can actually see it on my page for 1 sec and then I refresh - it gets deleted. I tried several types of pictures, from 640x640 to 612x612 and 1080x1080, sometimes raw from my phone and sometimes Photoshop edited. I still can't figure out what's the problem. Can you share a picture that worked for you so I can try that and eliminate the picture problem?

It can also be my account/IP was somehow banned from this API uploads (either by other hidden parameters), but I does work when I try from my Instagram client on my phone. Weird.

I'm suspecting they have some kind of sucpision levels - when they first check simple parameters such as the JSON and HTTP headers we are sending, and then after several wrong attempts (which I had), they may start a more strict API environment that checkes for embedded bits inside the picture or special meta data (EXIF) inserted by the official client. IDK.

mr0re1 commented 8 years ago

I'm curious, what kind of approval from Instagram did you get?

You can try this picture, it worked perfectly for me.

mnns commented 8 years ago

I got the JSON answer saying upload is ok with media_id and later on I got the full configure JSON that describes the configuration.

Ok, I got some news: it only deleted in my specific account. I tried uploading your picture to another account and it worked perfectly. When I tried the same picture, same script - different credentials - it uploaded and then deleted after 2 sec.

Weird.

b-e-r-t-o commented 8 years ago

I was actually getting the same issue.

mr0re1 commented 8 years ago

@b-e-r-t-o , can you please verify if it works if you try to use another account?

b-e-r-t-o commented 8 years ago

@mr0re1 It does work on another account.