Thanks to visit codestin.com
Credit goes to developers.facebook.com

Ghost Posts

You can create ghost posts using the Threads API. Ghost posts allow you to create text posts which will be active for 24 hours and automatically expire afterward.

Limitations

  • Ghost posts are text-only posts.
  • You cannot reply to any post with a ghost post.
  • The only feature supported with ghost posts is text spoilers.

Create a Ghost Post

Step 1: Create a media container

Use the POST /{threads-user-id}/threads endpoint to create a media container with the is_ghost_post parameter.

Example request

curl -i -X POST \
  -d "media_type=TEXT" \
  -d "text=<TEXT>"" \
  -d "access_token=<ACCESS_TOKEN>"" \
  -d "is_ghost_post=true" \
"https://graph.threads.net/v1.0/<THREADS_USER_ID>/threads"

Example response

{
  "id": "<MEDIA_CONTAINER_ID>"
}

The request above creates a Threads media container that, once published, will create a ghost post.

Step 2: Publish the media container

You can publish using the returned Threads media container ID to create your ghost post.