XF 2.2 Help with thread_id

That is not a valid tag for XF2.

It is <xf:if ... .
@Paul B I updated to this, but still not working, but now instead of being on every page, it's not scraping the OG info at all and don't see it in the page source either.

Code:
<xf:if is="{$thread.thread_id} == 5">
<meta property="og:title" content="" />
<meta property="og:type" content="article" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:description" content="" />
</xf:if>
 
Reference for anyone else trying to achieve a different OG to a certain thread

First in thread_view add
Code:
<xf:page option="threadID">{$thread.thread_id}</xf:page>

then in page_container between <head> and </head> add

Code:
<xf:if is="$threadID == xxx">
<meta property="og:title" content="" />
<meta property="og:type" content="article" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:description" content="" />
</xf:if>

and then lastly go to https://developers.facebook.com/tools/debug/ and put in the URL of your thread to get a FB scrape update to share the thread.
 
Back
Top Bottom