I'm generating open graph meta tags dynamically from url paramaters. When I display the page, everything looks fine and if I check the page source, all my meta tags are generated perfectly. Here is the code that I use to generate them:
<?
$theSet = htmlspecialchars($_GET['id']);
$theTitle = htmlspecialchars($_GET['title']);
$theTitle1 = str_replace(" ","+",$theTitle);
$theTitle2 = str_replace(" ","-",$theTitle);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr-FR">
<head>
<meta charset="utf-8" />
<link rel="canonical" href="http://www.novo-monde.com/photo-album.php?id=<? echo $theSet; ?>&titel=<? echo $theTitle1; ?>" />
<title><? echo "Album photo ".$theTitle.""; ?></title>
<meta name="description" content="Vous trouverez sur cette page toutes les photos à propos de l'<? echo "album photo ".$theTitle.""; ?>.">
<meta property='og:locale' content='fr_fr'/>
<meta property="og:title" content="<? echo "album photo ".$theTitle.""; ?>" />
<meta property="og:type" content="article" />
<meta property="og:description" content="Vous trouverez sur cette page toutes les photos à propos de l'<? echo "album photo ".$theTitle.""; ?>." />
<meta property="og:url" content="http://www.novo-monde.com/photo-album.php?id=<? echo $theSet; ?>&titel=<? echo $theTitle1; ?>" />
<meta property="og:image" content="<?getSetSing($theSet);?>"/>
</head>
However, i have problems when I want to share one of these urls on facebook. In fact, when I share it, facebook seems to remove the "titel" parameter defined in the url. Lets take an example. If I have the following url:
http://www.novo-monde.com/photo-album.php?id=72157633440493567&title=Walensee
the page looks fine and the meta tags in the page source are defined properly. However if I enter this url in the facebook debug tool (as it does not work properly on facebook), the tool ignores the "titel" parameter and uses this one instead:
http://www.novo-monde.com/photo-album.php?id=72157633440493567&titel=
Does anyone know why what is defined after the "titel=" is beeing ignored ??? I have no idea where to look anymore...