【问题标题】:Instagram Graph API. Content Publishing. Publishing VideosInstagram 图形 API。内容发布。发布视频
【发布时间】:2021-04-07 12:23:44
【问题描述】:

我找不到 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端点创建一个媒体对象容器,然后(Good)

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"

【问题讨论】:

  • 我的浏览器拒绝加载 https://104.131.59.122/uploads/my_images/gallery_429/im_295_1617796300.mp4,因为证书不受信任 - 我看不出有任何理由,为什么 Facebook 应该对此更加宽容。
  • 谢谢。但是我以同样的方式做的图像。没问题
  • 那么当您尝试使用该 URL 的 HTTP 版本时会发生什么?
  • The video file you selected is in a format that we don't support 似乎不言自明。您是否按照建议执行并检查了支持的格式列表?
  • 此外,除了编解码器和容器之外,还有很多其他要求。我们不知道您的文件是否满足所有这些要求。 Facebook 似乎不这么认为。除非您以某种方式错误地发送了文件(因此它是空白的、被截断的或类似的东西),否则我们真的无法帮助您 - 我们不是视频编辑器。

标签: php facebook sdk instagram instagram-api


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-09
    • 2018-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-29
    • 1970-01-01
    • 2017-09-05
    相关资源
    最近更新 更多