Issue : Posting TWO images in a X/Tweet post

Hi guys,

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?

Thanks!

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.

1 Like

Are you using the Media ID or Media ID String?

Here is what I have done :

{{ [$(‘Uploading’).item.json.media_id_string, $(‘Uploading1’).item.json.media_id_string] }}

I’m pretty beginner thanks for your understanding

Hello!

Yes, I am using the X node ( X - Create tweet). What is the solution to post without the X node? An HTTP request?

Thx!

This is excellent. Thanks so much!

1 Like