Instagram 图 API。内容发布。发布视频

Instagram Graph API. Content Publishing. Publishing Videos

我找不到 Instagram 支持的正确视频 .mp4 格式。 任何人都做过这样的事情吗? .支持 Video Requirements.

我试过 .mp4 比例 1:1、4:5、16:9 响应不支持的格式。

什么是手段?视频容器?请帮忙

Container: MOV or MP4 (MPEG-4 Part 14), no edit lists, moov atom at the front of the file.

Post 视频不工作。 post video to Instagram

1.Use POST /{ig-user-id}/media 端点创建媒体对象容器,然后(好)

POST graph.facebook.com/17841407853399454/media?media_type=VIDEO&video_url=https://104.131.59.122/uploads/my_images/gallery_429/im_295_1617796300.mp4

{ "id": "17901610240810878" }

2.Use POST /{ig-user-id}/media_publish 端点发布容器(错误)

POST graph.facebook.com/17841407853399454/media_publish?creation_id=17901610240810878


"error": {
"message": "The video file you selected is in a format that we don't support.",
"type": "OAuthException",
"code": 352,
"error_subcode": 2207026,
"is_transient": false,
"error_user_title": "Unsupported format",
"error_user_msg": "The video format is not supported. Please check the specs for the supported streams format",
"fbtrace_id": "AKJfxH9pUFixA8vGyalKw8z"

我的浏览器拒绝加载 https://104.131.59.122/uploads/my_images/gallery_429/im_295_1617796300.mp4,因为证书不受信任。

Facebook 对适当的 SSL 也很严格,因此您要么必须使用纯 HTTP URL,要么让您的 SSL 设置使用有效证书,issued/backed 由受信任的机构颁发。