Passing emojis to caption of Facebook Graph API - Node to post a picture with captions reults in �

Problem:

I am trying to post a picture with caption(contains emojis) on facebook via Facebook Graph API.

Posting the image works flawlessly, however the emojis contained in the caption are not rendered correctly. The emojis appear as:

I tried to pass the emojis as Unicode using a Code node. The result in the post looks like this: \ud83c\udf3f

The exact same post (image and caption) works perfectly with emojis when using the Facebook module in make.com. The source is the same Airtable record.

What am I doing wrong?


Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.121.3
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Docker, caddy
  • Operating system: Linux

Hey @Vitali !

Looks like character‑encoding /JSON‑encoding .

If you use :

{{ JSON.stringify($json.Postingtext) }}

does solve the issue?

Thanks for your reply :slight_smile:

unfortunately not. Same output.

if there is any useful additional information I can provide, let me know.

Ahh .. sry, just seen that is about query parameter and not the json body.

I am not sure about URI-encoding

But I think a Code node can do that, but honestly I don’t know…