The site where I use K2 has tons of photos on each page. So I figured out how to make sure that when someone shares one of my K2 Item pages on Facebook, it uses the Item Image as the thumbnail, instead of making the user scroll through a ton of pictures. So I thought I would share the info!Insert this code into /components/com_k2/views/item/view.html.php. I put it in the Metadata section. if (JFile::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache'.DS.md5("Image".$item->id).'_XS.jpg')) { $document->addCustomTag('<link rel="image_src" href="'.JURI::root().'media/k2/items/cache/'.md5("Image".$item->id).'_XS.jpg"'); }In order for this to work properly, your XS images must meet Facebook's thumbnail size requirements. developers.facebook.com/docs/share"The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and
width divided by height (w/h, h/w) cannot exceed 3.0. For example, an
image of 126x39 pixels will not be displayed, as the ratio of width
divided by height is greater than 3.0 (126/39 = 3.23). Images will be
resized proportionally."
width divided by height (w/h, h/w) cannot exceed 3.0. For example, an
image of 126x39 pixels will not be displayed, as the ratio of width
divided by height is greater than 3.0 (126/39 = 3.23). Images will be
resized proportionally."