Google drive file to Instagram

I have tried uploading a file (binary) available to Facebook but it fails.

Have tried uploading binary file to Google Drive and also ibb but in Facebook Graph API, the download of the file fails with following error.

{ “error”: { “message”: “Only photo or video can be accepted as media type.”, “type”: “OAuthException”, “code”: 9004, “error_subcode”: 2207052, “is_transient”: false, “error_user_title”: “Media download has failed. The media URI doesn’t meet our requirements.”, “error_user_msg”: “The media could not be fetched from this URI: https://… Please check the limitations section in our development document for more information: Media - Instagram Platform - Documentation - Meta for Developers”, “fbtrace_id”: “A9qQkjVY_FsYdkgDDKrsZok” } }

I have also tried Azure Storage, but I am not able to get a public URL of the image after upload.

Any idea, how to convert a binary to url that is acceptable by Facebook Graph API?

Good afternoon, my friend. I would choose to upload the URL to Supabase and get the direct link from there (manual method). If you’d like to get in touch, we can find a solution together!

Azure storage worked. I had to just manually construct the url from the uploaded file

Hi there!
According to your case, can you share the workflow here to make it more easier to debug? Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.