I'm trying to automate my instagram feed (in future extending to more users). To achieve that, im using:
- Instagram basic display: to get access token for a certain user, permissions and then access to read-only data (followers, posts, etc). But this application does not support posting anything, just read operations.
- Instagram graph API: I pretend to use this to actually post on instagram, but after reading the documentation and other questions in stackoverflow, i can't get any clue on how to post an image/video.
Also, as mentioned in the docs: share on news section it seems to be posible to post, but not from my app, it opens instagram app (which also shows compatibility with mobile apps only).
My last guess is that it's maybe posible by using facebook's graph API facebook's docs, where:
curl -i -X POST "https://graph.facebook.com/{your-page-id}/feed?message=Awesome!&access_token={your-page-access-token}"
it's used to post.
I've tried to use same format but on instagram's API:
curl -i -X POST "https://graph.instagram.com/{your-page-id}/feed?message=Awesome!&access_token={your-page-access-token}"
I got response from server (what gives me some hope that at least the endpoint exists) but it was an error response with unauthorized code.
Anyone knows how to post an image using the graph API? Is it even posible?
If you need any more info please ask for it in a comment!
Thanks!
question from:
https://stackoverflow.com/questions/65886724/instagram-graph-api-post-an-image 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…