For some reason, when I share a URL to my blog post on LinkedIn, the image specified in the
og:image tag does not appear in the share LinkedIn post.
URL shared: https://robertcooper.me/post/feature-flags
og:image meta tag found in the page's head:
<meta property="og:image" content="https://www.robertcooper.me/api/og-image/Building%20with%20feature%20flags?readTime=6">
The LinkedIn post inspector confirms that the image won't show up when shared: https://www.linkedin.com/post-inspector/inspect/https:%2F%2Frobertcooper.me%2Fpost%2Ffeature-flags
Testing things out on other websites, I looked at how sharing this URL looks like: https://css-tricks.com/
This shows up correctly on LinkedIn (as confirmed by the LinkedIn post inspector: https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fcss-tricks.com%2F).