Edito, el codigo de codificacion que vos me pasaste donde iria ?
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include 'fonctions.php';
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
<?PHP
if($_GET['id']){
$select = mysql_query("SELECT * FROM `likes` WHERE `id`='$_GET[id]' LIMIT 1");
$count = mysql_num_rows($select);
$fetch = mysql_fetch_array($select);
$count = $fetch[numLikes] + 1;
$valm = $_GET[id] - 1;
$valp = $_GET[id] + 1;
mysql_query("UPDATE `likes` SET `numLikes`='$count' WHERE `id`='$_GET[id]'");
echo '<title>'.$fetch[title].'
</title>';
echo '
<meta property="og:title" content="'.$fetch[title].'"/>';
}else{
if($_GET['imageid']){
$select = mysql_query("SELECT * FROM `images` WHERE `id`='$_GET[imageid]' LIMIT 1");
$count = mysql_num_rows($select);
$fetch = mysql_fetch_array($select);
$count = $fetch[numLikes] + 1;
$valm = $_GET[id] - 1;
$valp = $_GET[id] + 1;
mysql_query("UPDATE `images` SET `numLikes`='$count' WHERE `id`='$_GET[imageid]'");
echo '
<meta property="og:title" content="'.$fetch[description].'"/>';
} else {
?>
<? } ?>
<meta property="og:site_name" content="LikePortal.info ♥"/> <meta name="description" content="Welcome to LikePortal. Want to share anything with your Friends on Facebook? We have this site for you. Come Share the Likes. We also have Many Top liked, Proverbs, Funny Quotes to be Liked." /> <meta name="keywords" content="like on facebook, facebook sites, likefb, likeylike, likeportal, facebook like, fblike, like things on facebook, like my things, like, like my views, facebooked likes, thefacebook, google, like on facebook, social website"/> <meta http-equiv="Content-Type" content="text/html; charset="<?php echo $encoding ?>">
<link rel="stylesheet" href="/files/stylesheet.css" type="text/css"> <link rel="shortcut icon" href="favicon.png" type="image/x-icon"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta property="og:site_name" content="Tumejorfrase ♥"/> <?php if($_GET['imageid']){
echo '<meta property="og:image" content="'.$website.'/upload/'.$fetch[url].'"/>
<link rel="'.$website.'/upload/'.$fetch[url].'" href="thumbnail_image" />';
} else {
echo'
<meta property="og:image" content="'.$website.'/images/likebutton.png"/><link rel="/images/likebutton.png" href="thumbnail_image" />'; } ?>
<SCRIPT LANGUAGE="JavaScript" SRC="files/tabs.js">
<?php echo' <!-- Top Bar -->
<div id="navigate_wrapper"> <li><a href="'.$website.'/index.php">'.$name.': '.$home.'
</a></li> <li><a href="'.$website.'/popular.php">'.$popular.'
</a></li> <li><a href="'.$website.'/random.php">'.$random_likes.'
</a></li> <li><a href="'.$website.'/new.php">'.$newest.'
</a></li> <li><a href="http://facebook.com/">'.$returnfb.'
</a></li>
<div id="likebutton" style="padding-top:7px;" >Like us! :
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/pbjbreaktime" layout="button_count" show_faces="false" width="90" action="recommend" font=""></fb:like> </div></li></ul>'; ?>
<!--End Top Bar-->
<td><div style="float:left"><img src="/images/logo.png" style="float:left;margin:5px 5px 5px 5px;" alt="logo"></div></td> <script type="text/javascript"> function clearText(field){
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}