本文整理匯總了PHP中front::GetMetaFB方法的典型用法代碼示例。如果您正苦於以下問題:PHP front::GetMetaFB方法的具體用法?PHP front::GetMetaFB怎麽用?PHP front::GetMetaFB使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類front
的用法示例。
在下文中一共展示了front::GetMetaFB方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<base href="http://<?php
echo $_SERVER['SERVER_NAME'];
?>
/" />
<meta http-equiv="content-language" content="vi, en" />
<meta name="keywords" content="nha thep tien che, xay dung nha xuong, ket cau thep, pre engineered steel buildings, steel building, tps" />
<meta name="robots" content="noodp,index,follow" />
<meta name='revisit-after' content='1 days' />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
<?php
if (isset($_GET['url'])) {
$url = $_GET['url'];
//echo $url;
$idNews = $i->getIDNews($url);
$meta = $i->GetMetaFB($idNews);
$row_meta = mysql_fetch_assoc($meta);
?>
<meta property="og:type" content="article">
<meta content="https://www.facebook.com/truongphusteel2002" property="article:publisher">
<meta property="og:title" content="<?php
echo $row_meta['name_vn'];
?>
" />
<meta property="og:description" content="<?php
echo $row_meta['sum_vn'];
?>
" />
<meta property="og:image" content="<?php
echo "http://" . $_SERVER['HTTP_HOST'] . $row_meta['img'];
?>