Controlling which picture is used for FaceBook thumbnail
The following code inserted into the header.php passes off the thumbnail in the article.
<?php<br />
if (is_home()) {<br />
echo '<meta property="og:image" content="http://www.amarketplaceofideas.com/wp-content/uploads/2013/04/Wavy-Arm-Guy.jpg"/>';<br />
}<br />
elseif (function_exists("has_post_thumbnail") && has_post_thumbnail() && !is_home() ) {<br />
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full ); ?><br />
</p><br />
<meta content="<?php echo $thumbnail[0]; ?>" property="og:image" /><br />
<?php } ?><br />
<p><br />
1 Comment
Freemon SandleWould · April 30, 2013 at 5:55 am
Hey Banjo! You do know you need to replace the default image link with your own right?