Setting the `og:media` property determines which image is shown in social media, so yes, you can refer to another image that is not on the page.
devwouter@mastodon.social
@devwouter@mastodon.social
Posts
-
#MediaWiki question: I want to use a screenshot of the interactive map embedded on the main page of the wiki as its social media preview card because that map is such an eye catcher. -
#MediaWiki question: I want to use a screenshot of the interactive map embedded on the main page of the wiki as its social media preview card because that map is such an eye catcher.The image selected when it comes to sharing on social media is commonly determined by the `<meta property="og:image" ..>` (See https://ogp.me/ for more information)
So I think your solution is here: https://www.mediawiki.org/wiki/Extension:OpenGraphMeta