O
Otherwise Film
guest
How do you set the first image (or attachment) on XenForo to show on X (formerly Twitter) and Facebook when sharing a thread or an article instead of the logo that's in the Basic Options?
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"...
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}"
arg-imageUrl="{{ link('canonical:attachments', $thread.FirstPost.Attachments.first()) }}" />
<xf:else/>
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$fpSnippet}"
arg-shareUrl="{{ link('canonical:threads', $thread) }}"
arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
</xf:if>
<xf:macro id="metadata"
arg-siteName=""
arg-title=""
arg-description=""
arg-type=""
arg-shareUrl=""
arg-canonicalUrl=""
arg-imageUrl=""
arg-twitterCard="summary_large_image">