instagram

Matt Graham mhgraham at crow202.org
Sat Jul 6 12:58:51 MST 2019


On 2019-07-06 12:14, Harold Hartley wrote:
>> On Sat, Jul 6, 2019 at 3:01 PM Matt Graham wrote:
>>> On 2019-07-06 11:45, Michael wrote:
>>> how about uploading pictures [to Instagram] from your computer?
>> The developers of Instagram don't want you to do that. The original
>> idea was that all pictures uploaded to Instagram would be taken 
>> directly
>> from your phone, via their Instagram android/iphone applications, so 
>> no
>> image editing would take place.
> What about when iOS 13 comes out will have photo editing. How is
> Instagram going to control that[?]

The last time I looked, in order to upload a photo to Instagram, you 
had to do it through their phone application.  The actual procedure used 
is (probably) not complicated:  Instagram phone application does 
something like "POST /login user=username password=password" to the 
server, server replies with a session cookie.  Phone application opens 
the camera, acquires an image, post-processes the image, then does 
another POST containing that image with that session cookie and 
(probably) a secret.  Server checks cookie, image, and secret, if they 
all check out, image is uploaded and then available on Instagram's 
servers.  This is probably not exactly how it works, but it's probably 
close.  An application that isn't Instagram would not have the session 
cookie or the secret, making it impossible for that application to 
upload things.

IIRC, the phone application doesn't allow you to just grab a photo out 
of the filesystem and upload it.  I also think you can pay them money to 
get an API key to allow something you've custom-built to upload images, 
but ICBW as we didn't need that capability.

All info is from banging on an Instagram microservice-type thing for 
work a while back.  They had people with Instagram accounts, and they 
wanted an easy way to retrieve those people's images and display them.  
I had to create an Instagram account for testing... NOPEd that .apk 
right off the work phone ASAP.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list