Hi, I have searched the forum all morning and have not found the answer to this question, however, I apologize if this question has been already asked. On my current site I only use small and large images. I have installed a facebook like button for my products (that works great by the way) however I have one small problem with it... My small images are 150 x 150 and facebook is telling me that my images should be at least 200 x 200. I would like to call the large image instead of the small image. I have been trying to dig into the php files to try to figure this out however I think I am too much a noob with php... I think I know how to do it I just do not know the proper code to get it done...... Here is my current facebook image code...I tried a few things to get the larger image to appear and managed to get to the correct directory and what would be the correct image if it did have the _lrg tag on it... I assume there is a way in php to add the _lrg tag to the end of the image name (before the extension) I just do not know how to do this properly.....Code:<?php if (isset($_GET['products_id'])) { // use products_image if products_id exists $facebook_image = $db->Execute("select p.products_image from " . TABLE_PRODUCTS . " p where products_id='" . (int)$_GET['products_id'] . "'"); $fb_image = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $facebook_image->fields['products_image']; } if ($fb_image == '') { // if no products image, use the default image if enabled $fb_image = 'http://www.store.com/includes/templates/scb/images/logo.gif'; } if ($fb_image != '') { ?> <meta property="og:image" content="<?php echo $fb_image; ?>" />






Bookmarks