Here's how to create og:image tag by finding the file in the post, and automatically selecting the largest image file size.
Open the thread_view template, find the following code:
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{...