エラーコード

このページでは、InstagramグラフAPIから返される可能性のあるエラーメッセージについて説明します。下記のサンプル応答は、コード3600、サブコード2207004の例です。その後にエラーコードの定義を示します。

応答の例

{
  "error": 
    {
      "message": "The image size is too large.",
      "type": "OAuthException",
      "code": 36000,
      "error_subcode": 2207004,
      "is_transient": false,
      "error_user_title": "Image size too large",
      "error_user_msg": "The image is too large to download. It should be less than 8 MiB.",
      "fbtrace_id": "A6LJylpZRKw2xKLFsAP-cJh"
   }
 }

エラーコードの定義

HTTPステータスコードコードサブコードユーザーメッセージ推奨されるソリューション

400

-2

2207003

It takes too long to download the media.

メディアのダウンロード中にタイムアウトが発生しました。もう一度お試しください。

400

-2

2207020

The media you are trying to access has expired. Please try to upload again.

新しいコンテナIDを生成し、それを使って再試行してください。

400

-1

2207001

Instagramサーバーエラーが発生しました。もう一度お試しください。

400

-1

2207032

Create media fail, please try to re-create media

メディアコンテナを作成できませんでした。もう一度お試しください。

400

-1

2207053

unknown upload error

アップロード中に不明なエラーが発生しました。新しいコンテナを生成し、それを使って再試行してください。これは、動画のアップロードにのみ影響します。

400

1

2207057

Thumbnail offset must be greater than or equal to 0 and less than video duration, i.e. {video-length}

入力したサムネイルのオフセットが動画の長さの範囲を超えています。ミリ秒単位で適切なオフセットを追加してください。

400

4

2207051

We restrict certain activity to protect our community. Tell us if you think we made a mistake.

公開アクションにスパムの疑いがあります。コミュニティを保護するため、特定のアクションを制限しています。この公開アクションがスパムでないことが確実な場合は、お知らせください。

400

9

2207042

You reached maximum number of posts that is allowed to be published by Content Publishing API.

アプリユーザーが、1日当たりの公開制限に達しました。次の日にもう一度試すようアプリユーザーに指示してください。

400

24

2207006

The media with {media-id} cannot be found

アクセス許可がないかトークンの有効期限が切れているために、アクセス許可エラーが発生した可能性があります。新しいコンテナを生成し、それを使って再試行してください。

400

24

2207008

The media builder with creation id = {creation-id} does not exist or has been expired.

コンテナ公開時に一時的なエラーが発生しました。30秒から2分後に、1–2回再試行してください。失敗した場合、新しいコンテナIDを生成し、それを使って再試行してください。

400

25

2207050

The Instagram account is restricted.

アプリユーザーのInstagramプロアカウントが非アクティブになっているか、チェックポイントが設定されているか、制限されています。Instagramアプリにサインインし、アカウントを再度有効にするためにアプリが要求しているアクションを完了するようアプリユーザーに指示してください。

400

100

2207023

The media type {media-type} is unknown.

入力されたメディアタイプは、予期されるメディアタイプのいずれでもありません。適切なものを入力してください。

400

100

2207028

Your post won't work as a carousel. Carousels need at least 2 photos/videos and no more than 10 photos/videos.

受け入れ可能な数の写真/動画を使って、もう一度試してください。

400

100

2207035

Product tag positions should not be specified for video media.

動画ではX/Y座標がサポートされていません。動画ではX/Y座標を禁止してください。

400

100

2207036

Product tag positions are required for photo media.

画像商品タグにはX/Y座標が含まれていなければなりません。画像ではX/Y座標が必須です。

400

100

2207037

We couldn't add all of your product tags. The product ID may be incorrect, the product may be deleted, or you may not have permission to tag the product.

アイテムのタグ付けに使われる商品のうちの1つ以上が無効です(削除されている、却下されている、アプリユーザーにアクセス許可が不足している、商品IDが無効、など)。アプリユーザーのカタログと対象商品を再度入手してから、アプリユーザーに対し、タグ付けでそれらの商品IDだけを使うことを許可するようにしてください。

400

100

2207040

Cannot use more than {max-tag-count} tags per created media.

アプリユーザーが使用する@タグが最大数(20)を超えました。使用する@タグの数を減らすようユーザーに指示してください。

400

352

2207026

The video format is not supported. Please check spec for supported {video} format

サポートされていない動画フォーマットです。MOVまたはMP4 (MPEG-4 Part 14)をアップロードするようアプリユーザーに指示してください。動画の仕様をご覧ください。

400

9004

2207052

The media could not be fetched from this uri: {uri}

指定されたURIからメディアを取得できませんでした。URIが有効であり公開されていることを確認するようアプリユーザーに指示してください。

400

9007

2207027

The media is not ready for publishing, please wait for a moment

コンテナステータスを確認し、そのステータスがFINISHEDの場合に公開するようにください。

400

36000

2207004

The image is too large to download. It should be less than {size}.

画像の最大ファイルサイズ8MiBを超えています。画像のサイズを小さくして再試行するようユーザーに指示してください。

400

36001

2207005

The image format {current-image-format} is not supported. Supported formats are: {format}.

アクセス許可がないかトークンの有効期限が切れているために、アクセス許可エラーが発生した可能性があります。新しいコンテナを生成し、それを使って再試行してください。

400

36003

2207009

The submitted image with aspect ratio {submitted-ratio} cannot be published. Please submit an image with a valid aspect ratio.

画像のアスペクト比が、受け入れ可能範囲外です。アプリユーザーに、4:5から1.91:1の範囲の画像を使って再試行するよう指示してください。

400

36004

2207010

The submitted image's caption was {submitted-caption-length} characters long. The maximum number of characters permitted for a caption is {maximum-caption-length}. Please submit media with a shorter caption.

キャプションが最大文字数を超えています。キャプションを短くするようユーザーに指示してください。上限は、2,200文字、ハッシュタグ30個、@タグ20個です。