Hello Sir.
This is the code I have on my website. I just try on Facebook and Twitter shares, and it's working (pulling well the attached image of the posts)
<!-- Metadatos Opengraph -->
<xf:if is="$thread.cover_image">
<xf:macro template="metadata_macros" name="metadata"...