我想从我的joomla网站上更改og
代码。元标记正在显示
<meta property="og:image" content="http://119.18.55.52/~videosco/images/video_thumb/funnycat_thumb.jpg" />
这不是视频缩略图。这是我在文章中提供的简单图像。
我正在使用
ja_fubix
模板。当我单击share button
时,仅显示该图像,该图像是我在文章中添加的。请帮我显示视频缩略图。
最佳答案
试试这个 ,
$doc = JFactory::getDocument();
$doc->addCustomTag( '<meta property="og:title" content="'.$shareTitle.'" />' );
$doc->addCustomTag( '<meta property="og:description" content="'.$shareDesc.'" />' );
$doc->addCustomTag( '<meta property="og:image" content="'.$shareImg.'" />' );
有关更多read。
希望能有所帮助
关于facebook - 如何在joomla网站中更改元标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22854570/