开始前需要一个已授权、状态正常的 Instagram social_account_id。本页不包含账号授权跳转流程。

1. 发布 Instagram 帖子

cURL
type 可按实际内容使用 POST、REEL 或 STORY。素材地址必须能被平台服务直接访问。
创建响应
保存 social_post_id。后续接口把它作为 post_id 使用;不要传 action_sn。

2. 查询帖子状态

cURL
帖子详情可能包含 id、platform、status、title、text、description、post_type、thumbnail、permalink、extra、last_synced_at 和 published_at。轮询到 published、failed 或 deleted 后停止。

3. 创建评论

cURL
回复已有评论时可额外传 parent_comment_id;普通评论不要传。
创建评论响应

4. 查询评论

cURL
查询响应会返回 comment_id、external_id、status、published_at 和 error_message。published 表示评论已发布,failed 时应展示 error_message,不要无限重复创建相同评论。
提示 示例中的账号、帖子、评论 ID 和素材域名都是演示值。实际调用必须使用当前应用可访问的资源。