Threads API integration

Hey!

I’m wondering if anyone in the community has managed to succesfully integrate with the Meta Threads API?

I’d love to do so but I’m getting lost in the Meta docs.
I’m already integrating with (=posting to) instagram, but it seems like getting a similar token for the threads APIs is not as trivial if at all possible.

Hoping somebody has had more success…

2 Likes

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @d17e.dev,

I have been toying with the idea of seeing if I can work with threads for a while, Do you happen to have any API docs I can look over?

All I have is the official facebook docs:

Think the API itself is not really the issue, more the Auth part.
That’s also a headache for other APIs like for Instagram, but there you can use the token debugger to get a long lived token.

yes please add it! :smiley:

in meantime i have create a http node for post on theads

i have create the app with specific scope the threads i have add permission, i have add test user and i have generate manually from the app the token for test user (i have use the token as query auto credentials in n8n)

i have try to create an oauth2 credentials but im stuck(receive the code from threadsapp but i dont understand how to generate token) so i have used the token manually generated

and all it seems works

I just added it with oAuth 2.0 and everything seems to work. But only for 1 hour, while short-lived token is alive

you can generate a token for some months inside the app in meta developers console. OR you can request a long live token via your short live token with api call

And you can create a cronjob workflow for refresh it Long-Lived Tokens - Threads API - Dokumentation - Meta for Developers