XF 1.5 Twitter card meta tags

RandyRS

New member
Hi...

I want to add Twitter meta tag but i don't know how to change the value.
Does anyone know how to make it dynamic ?

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@nytimes">
<meta name="twitter:creator" content="@SarahMaslinNir">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-articleLarge.jpg">

I just tried to make it like this but it didn't work.

<!-- START TWITTER -->
<meta name="twitter:description" content="{xen:raw $description}">
<meta name=”twitter:url” content=”{xen:raw $url}“>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@my account">
<meta name="twitter:creator" content="@my account">
<meta name="twitter:title" content="{xen:raw $title}">
<!-- END TWITTER -->
 
Hi @Chris D I added the code within <head> PAGE_CONTAINER.
Twitter validator here shows

INFO: Page fetched successfully
INFO: 21 metatags were found
INFO: twitter:card = summary_large_image tag found
ERROR: Required meta tag missing (twitter:text:description)
WARN: Not whitelisted

Did i miss something ?
 
I tried to reorder the tags but the error is still there,
When i changed the description into this
<meta name="twitter:description" content="View the album on Flickr." />

It works, but of course that is not what i want :D

INFO: Page fetched successfully
INFO: 21 metatags were found
INFO: twitter:card = summary_large_image tag found
INFO: Card loaded successfully
 
Top Bottom