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?