Social Sharing Icon and description
How To Insert Custom Image Thumbnail on Facebook Link Sharing
I followed the tutorial above and I create a thumbnail of the actual site and that works well..... however, I want to change it to use some code, but I am not sure what to call. If the post has an image I want to use that thumbnail if it doesn't then I want it to default to the page screenshot
I need something similar to the following:
Code:
// facebook connect digg social media image
function get_social_img() {
global $post;
if ( is_single ()){
$image = "";
$image = get_post_meta($post->ID, 'Thumbnail', $single = true);
?>
<link rel="image_src" href="<?php echo $image; ?>" />
<?
}
else {
?>
<link rel="image_src" href="http://www.domain.com/images/socialicon/pagethumb.gif" />
<?
}
}
Also when I share an AD on facebook, the description is "
Welcome, visitor! [ Register | Login ] | ", how do I change it to be the product description? I am using the All-in-one-
SEO plugin, I just need to put in the right %% to be able to insert the description as meta data.
Last edited by jppinto; February 1st, 2011 at 11:02 AM.
Reason: add info