View Full Version : image url

Matthew Rutledge
02-29-2012, 08:09 AM
I'm working on a facebook like button addition in my template. The problem is in the meta data of main_page.tpl.php.
The filename for the image is being passed to Facebook as ?osCsid=llrc3h6prrtf6cs3uioc2j7kr3.

Here is my code with the error. Any ideas how to change this to get the actual image name?

Thanks in advance.

<!--begin facebook meta-->
<meta property="fb:app_id" content="358304744202118" >
<meta property="og:site_name" content="<?php echo STORE_NAME;?>" >
<meta property="og:url" content="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ;?>" >
<meta property="og:title" content="<?php echo META_TAG_TITLE;?>" >
<meta property="og:image" content="<?php echo tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $mt_product_info['products_image'] ); ?>" >
<meta property="og:description" content="<?php echo strip_tags($mt_product_info['products_description']);?>" >
<meta property="og:type" content="product" >
<!--end facebook meta -->