I have automated my X account (X OAuth 2) with my N8N workflow. Everything is working well and I post one image with each tweet.
I’m now trying to do an X post using TWO images as part of my workflow. But it looks like the media ID string cannot use two of them. Any idea or template to share on how to overcome this?
For posting multiple images on X/Twitter using the X OAuth 2 node, you’ll need to upload each image separately and combine their media IDs into an array. Here’s how:
1. Use the “Upload Media” node for each image to get their individual media IDs.
2. In the “Post” node, set the “Media IDs” field to an array containing both IDs, like this:
```json
[“media_id_1”, “media_id_2”]
```
Make sure to connect the media upload nodes before the post node in your workflow.