XF 2.0 meta og information for social sharing

djbaxter

Well-known member
Where do I add an image for social sharing, specifically for members sharing on Twitter or Facebook?
 

Chris D

XenForo developer
Staff member
Use the Admin CP search to look for the "publicMetadataLogoUrl" style property.

On that page you can also set a retina resolution logo, and a favicon URL.
 

djbaxter

Well-known member
Entered the URL to the image there but it doesn't show up[ on Twitter. It does seem to work for Facebook.

On another (vBulletin) site, I had to specify Twitter separately as:

Code:
<meta name="twitter:card" content="summary">
<meta name="twitter:image"
content="https://bizwarriors.com/forum/bizwarriors.logo.og.png">
 

Chris D

XenForo developer
Staff member
We already take care of that. If you look in the source, it's already there, so it should show on Twitter:
HTML:
        <meta property="og:image" content="https://bizwarriors.com/forum/bizwarriors.logo.og.png" />
        <meta property="twitter:image" content="https://bizwarriors.com/forum/bizwarriors.logo.og.png" />
        <meta property="twitter:card" content="summary" />
According to the card validator here, it should work:
https://cards-dev.twitter.com/validator

1534371860325.png
 

djbaxter

Well-known member
You're right. It works perfectly in the card validatior.

But I don't see it when I view it in my account on Twitter. It must be a caching issue. I'll try again later.
 
Top