您可以使用 Threads API 来引用另一篇帖子。
向 POST /threads 端点发出创建影音内容对象的请求时,您可以引用另一篇帖子。请务必在 API 请求中加入以下参数:
quote_post_id — 您想引用的另一篇帖子的编号。curl -i -X POST \ "https://graph.threads.net/v1.0/<THREADS_USER_ID>/threads?media_type=IMAGE&image_url=https://www.example.com/images/bronz-fonz.jpg&text=BronzFonz&access_token=<ACCESS_TOKEN>" -d quote_post_id="1234567"
{
"id": "1234567" // Threads Media Container ID
}
以上请求将创建一个 Threads 帖子容器。该容器发布后,便会引用指定帖子中的引文。
检索时,所有引用帖都将相应地添加标签。向 GET /threads 或 GET /{threads_media_id} 端点发送检索影音内容对象的请求。请务必在 API 请求中加入以下字段:
is_quote_post —一个布尔值字段,表示某个帖子是否是引用帖。quoted_post — 被引用的帖子的影音内容编号。curl -s -X GET \ "https://graph.threads.net/v1.0/<THREADS_MEDIA_ID>?fields=id,is_quote_post,quoted_post&access_token=<ACCESS_TOKEN>"
{
"id": "12312312312123",
"is_quote_post": true,
"quoted_post": {
"id": "22312312312123"
}
}