I'm trying to set my meta tags for facebook like, but I have like button on changing page which means that title will be always different. My meta tag look like:
<meta property="og:title" content="<?php echo $listing['Listing']['title']?>" />
or whatever code I put there. It shows my title at debuger like:
<?php echo $listing['Listing']['title']?>
Simply sad, what's in inverted comas, that's title. Why? why it doesn't accpet that php code?
and I'm using ITP meta component to edit my meta tags and there I have put that php meta tag - TomasJ 2012-04-04 07:16
What file did you post the code into? It looks like it's not where it's supposed to be... I'd advise putting the tag into your template (/templates/yourtemplate/index.php)
Alternatively there's alot of extensions that can handle this for you: http://extensions.joomla.org/search?q=facebook+open+graph