social-app: Images not being displayed properly in cards generated by a link
Steps to Reproduce
Whenever we share Godot news on Bluesky, we get no card image in the posts. This is how the same input renders in three different social networks:
Mastodon
Bluesky
The url of the page being shared: https://godotengine.org/article/dev-snapshot-godot-4-4-dev-4/
The website has these two elements in the <head> pointing to the image:
<meta property="og:image" content="https://godotengine.org/storage/blog/covers/dev-snapshot-godot-4-4-dev-4.webp">
<meta name="twitter:image" content="https://godotengine.org/storage/blog/covers/dev-snapshot-godot-4-4-dev-4.webp">
Our website is statically generated, so we are not dynamically pulling this data.
What platform(s) does this occur on?
iOS, Web (Desktop), Web (Mobile)
What version of the app are you using?
Build version: 1.92.1.530; Bundle info: 89cff31b6 (prod); Bundle date: 24101917; Platform: ios
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 3
- Comments: 19 (2 by maintainers)
For those who find this thread - make sure your image has a Content-Type Header - that seems to be the cause.
In short:
This works - and the only difference in headers is the Content-Type: image/jpeg
https://cardyb.bsky.app/v1/image?url=https%3A%2F%2Fwww.redhillandreigatelife.co.uk%2Fresources%2Fimages%2F18770767.jpg
Original image:
New image that works:
@coppolaemilio - looking at your headers for your image - you also don’t have the content-type header.
I think it might be something wrong with the parsing in the meta proxy. I’m debugging a similar issue on spreaker.com and images like this:
are not being fetched while this:
is working correctly. Since pretty much is the same fro the two images:
it looks like the issue might be in the presence of
.in the image path in the first one (images.spreaker.com).We tried to look into the
cardyb.bsky.appsource but i’m not sure were too look, any guidance here i appreciated.@TimJoy-NQDM that fixed the issue! I still think Bluesky should fix it on their end, so I’ll leave the issue open.
We could do with something like Meta’s sharing debugger - using it forces it to scrape and cache changes & updated images.
Adding a +1 to this issue. Does anyone know how to make sure the content-type header gets set for OG images automatically generated with NextJS?