Thanks for an excellent mod. I saw that people were looking for microformat meta tags (e.g. requested by Facebook), so I added some quick and dirty (I did not bother to include any settings opportunities, you have to edit the fb-id before using it) rows that solves this to shop.product_details.php, right below the end of the original hack (about line 565):
/* BEGIN HACK FB METADATA FOR PRODUCT DETAILS PAGE */
function MetaProp($name, $content){
$return = '<meta property="'.strtolower($name).'" content="'.$content.'" />';
return $return;
}
$product_full_image = 'http://'.$_SERVER['HTTP_HOST'].'/components/com_virtuemart/shop_image/product/'.$db_product->f("product_full_image");
$product_store_url = $sess->url( URL.'index.php?page=shop.product_details&product_id='.$product_id, true );
$document->addCustomTag( '<!-- BOF FB tags. -->' );
$document->addCustomTag(MetaProp("og:title",$product_name)); # product name
$document->addCustomTag(MetaProp("og:type","product")); # hard coded "product"
$document->addCustomTag(MetaProp("og:url",$product_store_url)); # full product detail page url
$document->addCustomTag(MetaProp("og:image",$product_full_image)); # full product image url
$document->addCustomTag(MetaProp("og:site_name",$vendor_store_name)); # store name
$document->addCustomTag(MetaProp("fb:admins","7007007007")); # your stores (or your own) fb-id goes here
$document->addCustomTag( '<!-- EOF FB tags. -->' );
/* END HACK FB METADATA FOR PRODUCT DETAILS PAGE */
Thanks again :-)