Google Drive Image URL Issue with Facebook Graph API Node

Hi everyone,

I’m encountering an issue while using the Google Drive WebContentLink URL as ‘image_url’ in the Facebook Graph API Node. The error message I receive is: “Only photo or video can be accepted as a media type.” It seems that Meta does not permit redirect image URLs like those provided by Google Drive. I’m curious about how can i manage to pass this without encountering errors. The image I’m using is less than 1MB and fits the Instagram aspect ratio.

Has anyone experienced a similar problem or have any suggestions for a workaround?

Thanks in advance!

I had been using Google Drive the same way as you, and it was working until recently. Currently, I am able to use it to post to Facebook, but not to Instagram. I’m getting the same error as you. I don’t know what changed in the last couple of weeks to cause this.

1 Like

Also encountering the same Issue

1 Like

It seems that the issue is because the file coming from Google Drive does not appear to be an image file with a typical image file extension. I ended up resolving the problem by posting the image to my website’s server, using an HTTP node to call the graph API, and then deleting the image from my server.

1 Like

Hi, I noticed the same issue. I recommend using Airtable instead of Google Drive — it should work then.

Is that currently working for you? I tried that, but it had the same issue.

1 Like

Using Google Drive node to download image to binary file, in Facebook node, turn on “Send Binary File”

Hello everyone,
I’m facing the same issue — Google Drive and Airtable aren’t working for me either.
Has anyone found an alternative way to dynamically load files into the Graph API node?

I’ve also tried the “Send Binary File” option from @Vietnam_Road, but it still throws an error saying that image_url is required.

Any suggestions or workarounds would be greatly appreciated!

Hi again and to anyone who’s run into the same issue and found this post!
I’ve built a workaround that makes it work now. You need to run an automation in Airtable that converts the URL link into a file in a new column after the record where created. After that, you can use the “Get a record” node to take Airtable’s own file URL that can be placed in the Graph API as the image_url, effectively bypassing the Drive URL. Everything works perfectly now!

image


image

Here is a link to set up the Airtable Automation: Automatically Convert Image URLs to Images in Airtable (2024 Full Tutorial) - YouTube