TRIALSPost Trial Reels from code
The link
How to do it
- Make the reels container as usual: POST /<IG_ID>/media with media_type=REELS, video_url and caption.
- Add trial_params={"graduation_strategy":"MANUAL"} (or SS_PERFORMANCE to let Instagram share it with followers if it performs well in its first 72 hours).
- Leave out share_to_feed.
- Poll the container until status_code is FINISHED, then POST /<IG_ID>/media_publish with creation_id.
- Read it back with fields=media_product_type,is_shared_to_feed.
- MANUAL trials graduate the winners in the Instagram app.
Copy and paste
.claude/skills/trial-reel/SKILL.md
---
name: trial-reel
description: Posts a finished reel to Instagram as a Trial Reel through the Instagram API. Use when asked to post a reel as a trial.
---
Post the reel as an Instagram Trial Reel with the Instagram API (Content Publishing). Never publish until the user has approved the video and the caption.
1. The mp4 must be on a public URL: Instagram downloads it from there.
2. Ask which graduation strategy to use if the user didn't say: MANUAL (they graduate it in the Instagram app) or SS_PERFORMANCE (Instagram shares it with followers if it performs well in its first 72 hours).
3. Create the container: POST /<IG_ID>/media with media_type=REELS, video_url, caption and trial_params={"graduation_strategy":"<MANUAL or SS_PERFORMANCE>"}. Leave out share_to_feed.
4. Check GET /<container_id>?fields=status_code about once a minute, for up to 5 minutes, until it says FINISHED. ERROR or EXPIRED: stop and report.
5. Save the container id, then POST /<IG_ID>/media_publish with creation_id=<container_id>.
6. Read it back with GET /<media_id>?fields=media_product_type,is_shared_to_feed and report the result.