Skip to main content

Instagram Business API - "Could not upload media file. Only photo or video can be accepted as media type" Error

I'm encountering an error when trying to publish images to Instagram Business through Zapier. When my Zap runs, I receive this error: "Could not upload media file. Only photo or video can be accepted as media type" in the Instagram Business step.

Setup:

  • Trigger: Google Sheets (New Row)
  • Action: Instagram Business (Media Publish)
  • Media Type: IMAGE
  • Photo: URL from Google Sheets ({{291995349__COL$A}})

What I've tried:

  • The URL format appears correct: https://i.ibb.co/W40wqrLt/onsal-elektronik.jpg
  • The URL is from ImgBB and ends with .jpg
  • The URL starts with https://
  • I can open the URL in a browser and see the image

Questions:

  1. Does Instagram Business API have specific URL format requirements beyond just ending with an image extension?
  2. Could the length or format of my ImgBB URL IDs be causing this issue?
  3. Is there a way to test if my URLs are compatible with Instagram Business API before running the Zap?

Any help would be greatly appreciated as this is blocking our social media workflow. Thank you!

This should provide enough detail for the Zapier community to understand your issue and hopefully provide some specific assistance.

Hi ​@burakonsal 

For us to have more info, post screenshots showing:

  • how your Zap steps are outlined
  • how your Zap steps are configured in EDIT mode with the field mappings visible
  • the encountered error

Hey ​@burakonsal, just checking in—were you able to get this sorted? 

If not, can you confirm whether the Google Sheets field you’re using to supply the image only contains the image URL and nothing else, no HTML or extra space characters etc?

Also, if you copy and paste the URL for the image into the Photo field in the Instagram action, does it work or give the same error?

  1. Does Instagram Business API have specific URL format requirements beyond just ending with an image extension?
  2. Could the length or format of my ImgBB URL IDs be causing this issue?
  3. Is there a way to test if my URLs are compatible with Instagram Business API before running the Zap?

From what I can see, there aren’t requirements beyond using a link to a supported image file that’s publicly accessible:

e86b4cbaaf5a986e71b176a8461ec3a4.png
If you test it with images that are hosted elsewhere does it work? If it does, it might be that the domain ImgBB uses has been flagged by Instagram, for some reason.

Looking forward to hearing from you!


Reply