包含元标记并将其添加到此脚本以进行社交媒体共享。包含元数据在哪里?
<?php
validate_get($_GET['article']);
$id=$_GET['article'];
$title='';
include("includes/header.php");
?>
<div id="content">
<div>
<?php
$query="SELECT * FROM articles WHERE ARTICLE_ID = {$id} ";
$article_set = get_result_set($query);
if(mysql_num_rows($article_set)==0)
redirect_to("blog.php");
else{
$article=mysql_fetch_array ($article_set);
echo "
<div id='container-left2'>
<div><h2>{$article['ARTICLE_TITLE']}</h2></div>
<div id='article-date'>
<div class='month'>" . datetime_month($article['TIMESTAMP'])."</div><br>
<div class='date'>" . datetime_date($article['TIMESTAMP'])."</div><br>
<div class='year'>" . datetime_year($article['TIMESTAMP'])."</div>
</div>
<div id='article-content'>
<div id='by'>
<span class='article-author'>POSTED BY <a href='#'>Administrator</a> </span>
<span>ON ". datetime_to_text($article['TIMESTAMP']). "</span>
</div>
<div>{$article['ARTICLE_CONTENT']}</div>
</div>
<div class='clear:both;'></div>
</div>
<div id='container-right'></div>
<div class='clear:both;'></div>
";
}
?>
</div>
<div class='clear:both;'></div>
<div>
<?php include("includes/footer.php");?>
希望包含与社交媒体的文章标题和图像的链接 他们最终没有头衔和形象。 这是要在哪里使用的元标记?
<meta property="og:title" content="The best site">
<meta property="og:image" content="link_to_image">
<meta property="og:description" content="description goes here">