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

时间:2021-04-07 12:23:44

标签: php facebook sdk instagram instagram-api

我找不到 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 video to Instagram

1.使用 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.使用 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"

1 个答案:

答案 0 :(得分:1)

由于证书不受信任,我的浏览器拒绝加载 HashMap<String, Collection<Integer>> map1 = new HashMap<String, Collection<Integer>>(); HashMap<String, Collection<Integer>> map2 = new HashMap<String, Collection<Integer>>(); map3 = new HashMap<>(); map3.putAll(map1); map3.putAll(map2);

Facebook 对正确的 SSL 也有严格要求,因此您要么必须使用纯 HTTP 网址,要么让您的 SSL 设置使用由受信任机构颁发/支持的有效证书。

相关问题