Here's what I did...I'm not sure if it's the best way, but it works!
Do this at your own risk!!! Back-up all files first!
in "includes\templates\YOUR_TEMPLATE\common\html_header.php"
I placed this below the meta tag for "generator":
Code:
<?php if(strstr($_GET['main_page'], 'product_')) { ?>
<meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/>
<meta property="og:site_name" content="<?php echo TITLE; ?>"/>
<meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>"/>
<meta property="og:type" content="product"/>
<meta property="og:phone_number" content="ENTER PHONE NUMBER"/>
<meta property="og:region" content="ENTER STATE CODE"/>
<meta property="og:country-name" content="ENTER Country"/>
<meta property="fb:admins" content="ENTER FB USERID"/>
<?php } ?>
Note that the above only works on product pages not document pages.
There's also many more meta tags that FB recognizes it. Take a look at their developer resources for me info...
http://developers.facebook.com/docs/opengraph
in "includes\modules\meta_tags.php"
Add the change in red to the query on (or around) line 200:
Code:
$sql= "select pd.products_name, p.products_model, p.products_price_sorter, p.products_tax_class_id, p.products_image,
p.metatags_title_status, p.metatags_products_name_status, p.metatags_model_status,
p.products_id, p.metatags_price_status, p.metatags_title_tagline_status,
pd.products_description, p.product_is_free, p.product_is_call,
mtpd.metatags_title, mtpd.metatags_keywords, mtpd.metatags_description
I've inserted the following code at line 284 (for me), between the following lines in blue:
Code:
} // CUSTOM META TAGS
if($product_info_metatags->fields['products_image']!='') {
$FBimgURL = (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ) . DIR_WS_IMAGES . $product_info_metatags->fields['products_image'];
define('META_TAG_FBIMG', $FBimgURL);
} else {
define('META_TAG_FBIMG', '');
}
define('META_TAG_FBTITLE', str_replace('"','',zen_clean_html($product_info_metatags->fields['products_name'])));
} // EOF
break;
And than follow the other instructions in this thread for editing tpl_product_info_display
I hope this helps.