ERROR: Required meta tag missing (twitter:text:description)

blogger

#21

I got the small twitter card working just fine; however, I can not get the large twitter summary card to work at all. Every time I try to implement it, I get an “Error” on my HTML editing page.

:frowning:


#23

I wish you wrote your directions more clearly. I can’t understand it because of the grammar and sentence structure errors.


#24

I get this error all the time:
INFO: Page fetched successfully
INFO: 19 metatags were found
INFO: twitter:card = summary_large_image tag found
ERROR: Required meta tag missing (twitter:text:description)

Can someone pls help with this one:
I use Joomla and the code is in index.php file of my template:

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@myaccount">
<meta name="twitter:creator" content="@myaccount">
 
<meta property="og:site_name" content="mycompany"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="'.JURI::current().'"/>
<meta property="og:title" content="'.$this->escape($this->item->title).'"/>
<meta property="og:image" content="'.$timage.'"/>
<meta property="og:description" content="'.strip_tags($this->item->introtext).'"/>

This was my second option:

/* BEGIN: Open Graph and Twitter Card Tags */
$images = json_decode($this->item->images);
if (isset($images->image_intro) and !empty($images->image_intro)) {
	$timage= htmlspecialchars(JURI::root().$images->image_intro);
}
elseif (isset($images->image_fulltext) and !empty($images->image_fulltext)) {
	$timage= htmlspecialchars(JURI::root().$images->image_fulltext);
}
else {
	$timage= 'http://mydomain/images/logo/65.jpg';
}
$doc =& JFactory::getDocument();
$doc->addCustomTag('
<meta name="twitter:text:description" content="'.strip_tags($this->item->introtext).'">
<meta name="twitter:title" content="'.$this->escape($this->item->title).'">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@myaccount">
<meta name="twitter:creator" content="@myaccount">
<meta name="twitter:url" content="'.JURI::current().'">
<meta name="twitter:image" content="'.$timage.'">
 
<meta property="og:site_name" content="mycompany"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="'.JURI::current().'"/>
<meta property="og:title" content="'.$this->escape($this->item->title).'"/>
<meta property="og:image" content="'.$timage.'"/>
<meta property="og:description" content="'.strip_tags($this->item->introtext).'"/>
');
/* END: Open Graph and Twitter Card Tags */

#25

same here:
Deliverangy
?!