Options for posting using the Threads API
isVideo
parameter. See the /post endpoint for details.post: ""
.threadsOptions
parameter.
thread: true
.null
to skip media for a specific thread. Use objects with multiple URLs for multiple media per thread.See Thread Media for more information.mediaUrls
array and the carousel will automatically be created.
allowCountries
array.
allowCountries
: An array of country codes to allow. See country codes.isEligibleForGeoRestrictions
property in the /user endpoint.thread: true
to automatically break apart the post text into threads based on line breaks.threadNumber: true
to automatically add numbers at the end of threads in the format of 1/n.
For example, the 2nd of 5 threads will have appended: 2/5mediaUrls: [array of urls]
to add each media object, an image or video, to a thread in order.
Only one media object will be added to a thread in order.null
in the array. For example:
["https://site.com/image1.png", null, "https://site.com/image2.png"]
This will place image1 on the first post, no image on the second post, and image2 on the third post.
{}
with the media URLs in the mediaUrls
array. Any unique object keys can be used. For example:
\n\n
to the post text to indicate a unique thread should be created. If you have \n\n
in the post text, we will not automatically break the post into threads.
For example:
\u2063\n\u2063\n
.