Implemented Twitter Card Meta

This suggestion has been implemented. Votes are no longer accepted.
I agree. For example, add the following to open_graph_meta template ...
Code:
    <xen:if is="{$avatar}"><meta property="twitter:image:src" content="{$avatar}" /></xen:if>
    <meta property="twitter:image:src" content="{xen:helper fullurl, @ogLogoPath, 1}" />
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="<site twitter account @name from ACP>" />
    <meta property="twitter:url" content="{xen:raw $url}" />
    <meta property="twitter:title" content="{xen:raw $title}" />
    <xen:if is="{$description}"><meta property="twitter:description" content="{xen:raw $description}" /></xen:if>
 
As of XF 2.0 we add twitter card metadata to join the existing Facebook OpenGraph metadata.
Where are the instructions to set it up? Searching the docs https://xenforo.com/docs/xf2/ for "social" or "card" doesn't give results.

I don't have any social media card preview on Twitter.

I found these directions for XF 1.5 https://xenforo.com/community/threa...edia-preview-image-change.111541/post-1031003 but it didn't seem to do anything for Twitter.

For Linkedin https://www.linkedin.com/post-inspector/ it seems to be pulling from a user's avatar (after refreshing it, it's using my default non-square logo.

Facebook https://developers.facebook.com/tools/debug/ is using my non-square logo, and thus the sides are cut off.

EDIT:
I got Facebook & Linkedin to "work" via: Appearance -> Styles -> Default Style properties -> Basic options -> Metadata logo URL
 
Last edited:
Top Bottom