naystack - v1.5.10
    Preparing search index...
    • Fetches replies to a Threads post.

      Parameters

      • token: string

        Threads access token.

      • id: string

        Parent post id.

      • Optionalfields: string[]

        Optional array of field names. Default: ["text", "username", "permalink"].

      Returns Promise<T[] | undefined>

      Promise of an array of reply posts.

      import { getThreadsReplies } from "naystack/socials";

      const replies = await getThreadsReplies(accessToken, postId);
      for (const reply of replies ?? []) {
      console.log(reply.username, ":", reply.text);
      }