• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 How do I add attachment URL in XF's FB Open Graph?

TheBigK

Well-known member
#1
Code:
<xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
    <meta property="og:image" content="{xen:helper fullurl, @ogLogoPath, 1}" />
I want to replace @ogLogoPath with the URL of first image attached in the post. Is there any way to do that?

I think it will help in letting Facebook pick up the attached image instead of the avatar or default logo.