Ticket: App disconnects, can't upload images to Facebook/Instagram
@FoamToaster Just created a ticket
Question: Facebook and Instagram keep disconnecting, don't allow image upload
Attempted: Connecting using an app on localhost
Working On: As above
Using Postiz On: Docker Desktop
Take it from here @Postiz
Question: Facebook and Instagram keep disconnecting, don't allow image upload
Attempted: Connecting using an app on localhost
Working On: As above
Using Postiz On: Docker Desktop
Take it from here @Postiz
7 Replies
Keep getting this error:
postiz | {"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: http://localhost:5000/uploads/2025/02/04/1bca61fccb71026e1e11181dab5ee2b86.jpg. Please check the limitations section in our development document for more information: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media#creating","fbtrace_id":"A8GnmHuzC3pH6kLOAsrYHVh"}}
Have API key and secret in my compose file
Other providers (X/Twitter, Bluesky working fine)
Analytics for Instagram doesn't work either, every time I click on it it says it has disconnected and need reconnected
Facebook analytics works
If I go into the Facebook Login for Business bit and try to add the localhost URL as a redirect URL I get this error:
"http://localhost redirects are automatically allowed while in development mode only and do not need to be added here."
I presume that means it should be OK but is different than the docs say at this stage
![No description](https://cdn.answeroverflow.com/1336659180727308390/image.png)
Not sure if this is the issue but my understanding is it should work without verification if it is just for personal use?
![No description](https://cdn.answeroverflow.com/1336660464758685716/image.png)
And can't get that permission without verification
The upload is failing because Facebook is unable to retrieve your photo/image:
Is not publicly available. Facebook does not have access to
localhost
. You'll need to setup Postiz to store the uploaded images in R2 or setup Postiz so it's available on the internet via a public URL (eg xyz.yourdomain.com
). A reverse proxy is best for this. The docs have information about Nginx, Caddy and Traefik.Had similar issues and setting up R2 was how I solved it. I do not have a public domain so I sorted to using Cloudflare R2, follow the documentation and you should be good to go.
Have it working on a VPS now rather than localhost. I'm using Nginx and seems to be working fine.
Thanks for the help!
Confusing that the docs don't make it clear that localhost won't work for this - they explicitly give localhost as an example domain for the facebook/meta provider section