Threads
Create, publish, read, manage, and analyze Threads content through the Meta Threads API.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "THREADS_11_CREATE_TEXT_CONTAINER", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("THREADS_11_CREATE_TEXT_CONTAINER", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute THREADS_11_CREATE_TEXT_CONTAINER --data '{ }'Tool 目录
可用 Tools
29 个可调用操作
1.1 Create Text ContainerTHREADS_11_CREATE_TEXT_CONTAINERUse the `POST` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/posts#step-1--create-a-threads-media-container) to create a text container.需要连接
Use the `POST` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/posts#step-1--create-a-threads-media-container) to create a text container.
认证
需要 Connected AccountTags
2. Publish Threads PostTHREADS_2_PUBLISH_THREADS_POSTUse the `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/posts#step-2--publish-a-threads-media-container) to publish the container ID returned in the previous step.需要连接
Use the `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/posts#step-2--publish-a-threads-media-container) to publish the container ID returned in the previous step.
认证
需要 Connected AccountTags
Check Container's Publishing StatusTHREADS_CHECK_CONTAINER_SPUBLISHING_STATUSUse `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/troubleshooting#publishing-does-not-return-a-media-id) to check a container's publishing status.需要连接
Use `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/troubleshooting#publishing-does-not-return-a-media-id) to check a container's publishing status.
认证
需要 Connected AccountTags
Debug Access TokenTHREADS_DEBUG_ACCESS_TOKENDebug Access Token需要连接
Debug Access Token
认证
需要 Connected AccountTags
Delete Threads PostTHREADS_DELETE_THREADS_POSTDelete Threads Post需要连接
Delete Threads Post
认证
需要 Connected AccountTags
Embed a Threads PostTHREADS_EMBED_ATHREADS_POSTEmbed a Threads Post需要连接
Embed a Threads Post
认证
需要 Connected AccountTags
Exchange the Code For a TokenTHREADS_EXCHANGE_THE_CODE_FOR_ATOKENOnce you receive a code, exchange it for a short-lived access token by sending a `POST` request to the /oauth/access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/get-access-tokens-and-permissions#step-2--exchange-the-code-for-a-token)需要连接
Once you receive a code, exchange it for a short-lived access token by sending a `POST` request to the /oauth/access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/get-access-tokens-and-permissions#step-2--exchange-the-code-for-a-token)
认证
需要 Connected AccountTags
Get Account InsightsTHREADS_GET_ACCOUNT_INSIGHTSUse the `GET` /{threads-user-id}/threads_insights [endpoint](https://developers.facebook.com/docs/threads/insights#user-insights) to return the insights of a given Threads user.需要连接
Use the `GET` /{threads-user-id}/threads_insights [endpoint](https://developers.facebook.com/docs/threads/insights#user-insights) to return the insights of a given Threads user.
认证
需要 Connected AccountTags
Get a List of All a User's RepliesTHREADS_GET_ALIST_OF_ALL_AUSER_SREPLIESUse the `GET` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-list-of-all-a-user-s-threads) to return a paginated list of all threads created by a user.需要连接
Use the `GET` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-list-of-all-a-user-s-threads) to return a paginated list of all threads created by a user.
认证
需要 Connected AccountTags
Get a List of All a User's ThreadsTHREADS_GET_ALIST_OF_ALL_AUSER_STHREADSUse the `GET` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-list-of-all-a-user-s-threads) to return a paginated list of all threads created by a user.需要连接
Use the `GET` /{threads-user-id}/threads [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-list-of-all-a-user-s-threads) to return a paginated list of all threads created by a user.
认证
需要 Connected AccountTags
Get App Access TokenTHREADS_GET_APP_ACCESS_TOKENGet App Access Token需要连接
Get App Access Token
认证
需要 Connected AccountTags
Get App-Scoped User's Profile InformationTHREADS_GET_APP_SCOPED_USER_SPROFILE_INFORMATIONUse the `GET` /{threads-user-id}?fields=id,username,... [endpoint](https://developers.facebook.com/docs/threads/threads-profiles#retrieve-a-threads-user-s-profile-information) to return profile information about a Threads user.需要连接
Use the `GET` /{threads-user-id}?fields=id,username,... [endpoint](https://developers.facebook.com/docs/threads/threads-profiles#retrieve-a-threads-user-s-profile-information) to return profile information about a Threads user.
认证
需要 Connected AccountTags
Get Long-Lived Access TokenTHREADS_GET_LONG_LIVED_ACCESS_TOKENUse the `GET` /access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/long-lived-tokens#get-a-long-lived-token) to exchange a short-lived Threads user access token for a long-lived token.需要连接
Use the `GET` /access_token [endpoint](https://developers.facebook.com/docs/threads/get-started/long-lived-tokens#get-a-long-lived-token) to exchange a short-lived Threads user access token for a long-lived token.
认证
需要 Connected AccountTags
Get Mentioned Threads PostsTHREADS_GET_MENTIONED_THREADS_POSTSGet Mentioned Threads Posts需要连接
Get Mentioned Threads Posts
认证
需要 Connected AccountTags
Get Post InsightsTHREADS_GET_POST_INSIGHTSUse the `GET` /{threads-media-id}/insights [endpoint](https://developers.facebook.com/docs/threads/insights#media-insights) to return the insights of a given Threads post.需要连接
Use the `GET` /{threads-media-id}/insights [endpoint](https://developers.facebook.com/docs/threads/insights#media-insights) to return the insights of a given Threads post.
认证
需要 Connected AccountTags
Get Public Threads User's Profile InformationTHREADS_GET_PUBLIC_THREADS_USER_SPROFILE_INFORMATIONGet Public Threads User's Profile Information需要连接
Get Public Threads User's Profile Information
认证
需要 Connected AccountTags
Get Threads ConversationsTHREADS_GET_THREADS_CONVERSATIONSUse `GET` /conversation [endpoint](https://developers.facebook.com/docs/threads/reply-management#conversations) to fetch a paginated and flattened list of all top-level and nested replies.需要连接
Use `GET` /conversation [endpoint](https://developers.facebook.com/docs/threads/reply-management#conversations) to fetch a paginated and flattened list of all top-level and nested replies.
认证
需要 Connected AccountTags
Get Threads Pending RepliesTHREADS_GET_THREADS_PENDING_REPLIESUse `GET` /pending_replies [endpoint](https://developers.facebook.com/docs/threads/reply-management#retrieve-pending-replies) to fetch a paginated list of all pending replies.需要连接
Use `GET` /pending_replies [endpoint](https://developers.facebook.com/docs/threads/reply-management#retrieve-pending-replies) to fetch a paginated list of all pending replies.
认证
需要 Connected AccountTags
Get Threads Post DetailsTHREADS_GET_THREADS_POST_DETAILSUse the `GET` /{threads-media-id} [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-single-threads-media-object) to return an individual Threads media object.需要连接
Use the `GET` /{threads-media-id} [endpoint](https://developers.facebook.com/docs/threads/threads-media#retrieve-a-single-threads-media-object) to return an individual Threads media object.
认证
需要 Connected AccountTags
Get Threads RepliesTHREADS_GET_THREADS_REPLIESUse `GET` /replies [endpoint](https://developers.facebook.com/docs/threads/reply-management#replies) to fetch a paginated list of all top-level replies.需要连接
Use `GET` /replies [endpoint](https://developers.facebook.com/docs/threads/reply-management#replies) to fetch a paginated list of all top-level replies.
认证
需要 Connected AccountTags
Hide RepliesTHREADS_HIDE_REPLIESUse `POST` /manage_reply [endpoint](https://developers.facebook.com/docs/threads/reply-management#hide-replies) to hide/unhide any top-level replies.需要连接
Use `POST` /manage_reply [endpoint](https://developers.facebook.com/docs/threads/reply-management#hide-replies) to hide/unhide any top-level replies.
认证
需要 Connected AccountTags
Manage Pending RepliesTHREADS_MANAGE_PENDING_REPLIESUse `POST` /manage_pending_reply [endpoint](https://developers.facebook.com/docs/threads/reply-management#manage-pending-replies) to approve or ignore pending replies.需要连接
Use `POST` /manage_pending_reply [endpoint](https://developers.facebook.com/docs/threads/reply-management#manage-pending-replies) to approve or ignore pending replies.
认证
需要 Connected AccountTags
Refresh Access TokenTHREADS_REFRESH_ACCESS_TOKENRefresh Access Token需要连接
Refresh Access Token
认证
需要 Connected AccountTags
Repost Threads PostTHREADS_REPOST_THREADS_POSTUse the `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/posts#step-2--publish-a-threads-media-container) to publish the container ID returned in the previous step.需要连接
Use the `POST` /{threads-user-id}/threads_publish [endpoint](https://developers.facebook.com/docs/threads/posts#step-2--publish-a-threads-media-container) to publish the container ID returned in the previous step.
认证
需要 Connected AccountTags
Retrieve a List of a Public Profile's ThreadsTHREADS_RETRIEVE_ALIST_OF_APUBLIC_PROFILE_STHREADSRetrieve a List of a Public Profile's Threads需要连接
Retrieve a List of a Public Profile's Threads
认证
需要 Connected AccountTags
Retrieve Publishing Quota LimitTHREADS_RETRIEVE_PUBLISHING_QUOTA_LIMITUse `GET` /threads_publishing_limit [endpoint](https://developers.facebook.com/docs/threads/troubleshooting#retrieve-publishing-quota-limit) to check a user's publishing API quota limit.需要连接
Use `GET` /threads_publishing_limit [endpoint](https://developers.facebook.com/docs/threads/troubleshooting#retrieve-publishing-quota-limit) to check a user's publishing API quota limit.
认证
需要 Connected AccountTags
Retrieve Threads LocationTHREADS_RETRIEVE_THREADS_LOCATIONRetrieve Threads Location需要连接
Retrieve Threads Location
认证
需要 Connected AccountTags
Search for LocationsTHREADS_SEARCH_FOR_LOCATIONSSearch for Locations需要连接
Search for Locations
认证
需要 Connected AccountTags
Search for Threads PostsTHREADS_SEARCH_FOR_THREADS_POSTSSearch for Threads Posts需要连接
Search for Threads Posts
认证
需要 Connected AccountTags