Fetches a single Threads post by id.
Threads access token.
Post id.
Optional
Optional array of field names. Default: ["text", "permalink", "username"].
["text", "permalink", "username"]
Promise of post data (typed as T, defaults to ThreadsPost).
T
import { getThread } from "naystack/socials";const post = await getThread(accessToken, postId);console.log(post?.text, post?.permalink); Copy
import { getThread } from "naystack/socials";const post = await getThread(accessToken, postId);console.log(post?.text, post?.permalink);
Fetches a single Threads post by id.