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…

3 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

this is where i got stuck, i can’t seem to thread_publish the media container id

Hey! I totally understand where you’re coming from because the Meta Threads API documentation can be really overwhelming. Our software development company recently explored this as well, and while we have been able to integrate smoothly with Instagram’s API, Threads seems to be a different challenge. At this point, Meta hasn’t provided a fully public API for Threads like they have for Instagram, which makes obtaining the right access tokens and endpoints quite difficult, if not currently unavailable for most developers. We’ve been keeping an eye on any updates from Meta, but so far, it looks like access is still limited to select partners. If anyone here has figured out a way to make it work, I would love to hear about it too.

ForOAuth2 API :



I guess you found all the values for other fields, and what I miessed was to set Auth URI Query Parameters to : response_type=code
and choose Authentication : Body

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.