Creates a thread — a sequence of posts where each replies to the previous one. Newlines in post text are converted to %0A for the API.
%0A
Threads access token.
Array of post text strings (in order). Each post after the first becomes a reply to the previous.
Promise of the first published post's id.
import { createThread } from "naystack/socials";const firstPostId = await createThread(accessToken, [ "First post in thread", "Second post (reply to first)", "Third post (reply to second)",]); Copy
import { createThread } from "naystack/socials";const firstPostId = await createThread(accessToken, [ "First post in thread", "Second post (reply to first)", "Third post (reply to second)",]);
Creates a thread — a sequence of posts where each replies to the previous one. Newlines in post text are converted to
%0Afor the API.