Photo URL with Parameter to Instagram

:bullseye: What is your goal?

Hi everyone,

I am building an automation to post content from my CMS RSS Feed to Instagram Business, but I am stuck with an image error.


Alternative Idea (Facebook to Instagram) Since I already have a working automation that posts my 3 RSS feeds to a Facebook Page: Would it be a better workflow to simply use a “Watch Facebook Page” trigger and repost the content to Instagram automatically? This would save me from building parallel scenarios for all 3 feeds.

Has anyone successfully implemented this or knows how to fix the URL parameter issue?

Thanks for your help!

:thinking: What is the problem?

The Problem (Error 9004) My CMS delivers image URLs containing parameters for resizing, for example: https://www.domain.com/image.jpg?w=200&h=150

When sending this URL to the Instagram for Business module (“Create a Photo Post”), I get the following error:

DataError: Only photo or video can be accepted as media type. (9004, OAuthException)

It seems Instagram does not accept the URL parameters or the file type detection fails.

:test_tube: What have you tried so far?

What I tried I tried to solve this by using the HTTP - Get a file module to download the image first. However, I am struggling to map the output correctly to the Instagram module. I tried using the filename, but the upload still fails or I am configuring the “File” field incorrectly.

Welcome to the Make community!

You cannot use the Get a file module here, because the Instagram module only accepts a URL, not file data.

Does the URL still work without the query parameters? If yes, then use the replace function, or split + first functions to get the first part of the URL.

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!