[Instagram for Business] Post photo from Google Drive

I would like to post photos from google drive. So I set up a scenario including:
Google Sheet → Google Drive → instagram for businesS.

But it seems I can only post the image “thumbnail” from google drive which is very low quality. When I use the variable: “Web content link” there is an error indicating the format is unsupported:
“The image format is not supported. (36001, OAuthException)”

In the module doc, there is this:“Photos must be hosted on a publicly accessible URL and you cannot host your videos on Google Drive even if the file is shared publicly because Instagram API is not able to download files from Google Drive. The same applies to Dropbox URLs.”

Any ideas to circumvent this problem?

Thank you

4 Likes

Yes,
first go with “Get a Share Link” to enable access for everyone to photo/video, then use this direct url:

https://drive.usercontent.google.com/download?id={{File_ID}}&export=view&authuser=0

Just swap {{File_ID}} with File_ID variable. Be sure that your photo/video meets instagram requirements.

1 Like

The trick is to extract the document id first and then use it in this URL format

https://drive.google.com/uc?export=download&id={{doc_id}}

To extract the document_id, you can use this “Set Variable” step that first extracts the indexes and then extracts the substring from the main URL

I have described the detailed steps here:

4 Likes

Thank you, this worked great!

2 Likes