Get Instagram post with several pictures and post all pictures to another social account
Status: Closed · Asked by Press Start on · 0 views
Hi !
I'm trying to figure out how to retrieve all the media (more than one) from an Instagram post and how to post it to another account (like twitter).
For the moment, I'm just able to post only one media.
Thanks a lot for your help.
Hey @Press Start
Please check out the following screenshot from your above concern, kindly review that up and let us know if that works for you.
`
Thanks for this quick answer.
I'm stuck in the middle of the process : I don't have any data in the iterator.

Well I can access data now, I think it was unable to retrieve data from the last post so I had to post a new one.
But the twitter post still have only one image. The iterator doesn't seem to iterate... there's only one media file in the twitter response.

Hey @Press Start
The Iterator action step will post all the images one by one. Though you were just trying the workflow manually, if you try your complete workflow the iterator will post all the images one by one.
Please refer to the following video tutorial for you better understanding of the Iterator action step. Though we have reviewed your workflow and it seems fine to us, kindly give a test submission to try your complete workflow.
Thanks for getting back to me so fast.
There has been a submission and the result is a tweet with a single image, not the both that are on the instagram post.
OK What I understand is that we can't force a real workflow, so this coud be verified only on the next submission. Well, I'll wait and see.
This is not obvious that the test would be done only on one iteration.
So there has been a submission with several images and only the last is published.
Hey @Press Start
As we can see from your workflow's recent history log and it seems like all your Instagram pictures were posted to your Twitter account individually.
Please cross-check your twitter again and check for the number of posts. As from your history logs, it has posted all your Instagram pictures.

Ho yes it has published one tweet per media... but this is not what I intend to achieve : I want to publish all the media to 1 tweet.
Hey @Press Start
one tweet per media... but this is not what I intend to achieve : I want to publish all the media to 1 tweet.
As per Twitter's API, you can only post one image at a time.
Well, it's a shame.
Maybe because you use this endpoint : https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload instead of the the chunked upload endpoint as it's recommended in the API docs.
And it says here : https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/media-best-practices that "You may attach up to 4 photos, 1 animated GIF or 1 video in a Tweet".