When I use image_url parameter from imgbb on instagram graph API, return error 400. but when I use some other image like pexels, the error doesn’t appear.
What is the error message (if any)?
error 400:
Bad request - please check your parameters
Only photo or video can be accepted as media type.
The issue likely stems from the hosting server (Imgbb). It’s better to avoid services that restrict direct links to paid accounts. The image you provided (https://i.ibb.co/b5KZMqTX/Of936fa45b05.png) is currently unavailable. However, here’s a temporary workaround: you can use a proxy URL (CDN) like the one WordPress uses:
https://i1.wp.com/<Link here without https://>
Here’s example of my profile image loaded through cdn proxy:
It’s advisable to use something other than Imgbb or similar alternatives like Imgur, as these hosting services are often blocked in various locations and may not allow direct downloads without bot checks or paid subscriptions. Look for business free or affordable alternatives based on your usage needs.
Dropbox offers a free account and supports direct link generators (One of our clients using it with 3tb plan to share his direct products images links its working good just like the S3 and saving S3 money it already have node in n8n so you can do your uploading workaround easily).
S3 storage solutions—many, like Cloudflare R2, provide 10GB for free. Paid options such as Hetzner offer storage at around $5 per TB. These newer services are less likely to be blocked.
You need to use direct link and try to replace the dl=0 at end with dl=1 this will force download file directly. zero value is to show the image on websites (Load) the one number value is to force download the binary file immediately without rendering.
You can use this example for your image to test: https://dl.dropboxusercontent.com/scl/fi/cyhm63kphrwuc6m4axswy/Prancheta-4.jpeg?rlkey=tporf4q20urx7zis9tjh4shfi&dl=1 it’s officially supported to download binary files directly.
to implementing it to n8n just add this:
i’m trying to use a gdrive link (this) but still getting the same error.
`
Error Log
{ “error”: { “message”: “Only photo or video can be accepted as media type.”, “type”: “OAuthException”, “code”: 9004, “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://drive.google.com/uc?id=1GpczjXIf5nzGcETsrMwTEd5K76U6o7fl&export=download. Please check the limitations section in our development document for more information: Media - Instagram Platform - Documentation - Meta for Developers”, “fbtrace_id”: “AxnIxrc_-qmKef5WxwnPAh6” } }