I need to add a facebook like button to menu items from a php cp menu –
I’m thinking of pulling in the information from each menu div and having it fill in meta data before sending it to facebook
<div class="menu_content_cell">
<span class="menu_title"><?php echo $menuItem['item_name']?></span>
<?php if($menuItem['item_desc']) {?> <br />
<span class="menu_description"><?php echo $menuItem['item_desc']?></span><?php } ?>
</div>
to fill in
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>Sample</title>
<meta property="og:title" content="Site Name <?php echo $menuItem['item_name']?>"/>
<meta property="og:type" content="food"/>
<meta property="og:site_name" content="Site Name"/>
<meta property="og:description"
content="<?php echo $menuItem['item_desc']?>"/>
<meta http-equiv="refresh" content="0;url=http://www.sample.com/menu.php"/>
</head>
<body>
</body>
</html>
is this possible, or am I barking up the wrong tree?
How would I do it? Maybe if I could get a unique id for each menu item - I'm sure this is possible but I'm struggling to piece the parts of the puzzle together
Thanks in Advance