At, e.g., https://commons.wikimedia.org/w/index.php?title=Category:San_Francisco&action=info there is currently no page image, despite the commons category having an infobox with a main image. That means that when a link to the commons category is shared on twitter/facebook etc., no image is shown as there is no og:image meta tag.
It looks like this might be as straightforward as changing $wgPageImagesNamespaces to include categories.