OneDrive download link returns a function link instead of link for a jpeg/png file

I have a scenario that gets the image from a OneDrive folder and uploads it to Instagram.

It has been working without a problem since today. I got the following error.

DataError

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

So, I realize that the ‘download link’ from OneDrive function returns a link like,

*https://my. microsoftpersonalcontent.com/personal/1c82*****f084/_layouts/15/download.aspx?UniqueId=..........SomeIdCodeForImage.....................&ApiVersion=2.0*

Basically, it is not a link the Instagram module expects. Expected links must be the direct links to the image. Such as,
https://www.example.com/image.jpg (.png, .mp4, etc.)

Is there anyone who has experienced the same issue and/or has a solution for this?

Welcome to the Make community!

I think Google Drive and OneDrive is starting to block Instagram. Try another file hosting service.

Examples of such services include Imgur, Flickr, and Cloudinary.

You can also use Amazon S3, Google Cloud Storage, etc. You can find more file hosting integrations here: https://www.make.com/en/integrations/category/storage.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

1 Like

Thanks for your answer. Definitely, I will consider that.

The same scenario has been working properly since that day. How do they detect that the link is used in the Instagram API and block it? If that is the issue, I did not see anyone who experienced the same problem.

Well within the recent weeks I’ve seen a few others with the same issue, so it’s definitely Instagram not playing nice with personal file hosting.

1 Like