May 24, 2011
If you’re a WordPress user like myself, sometimes you might run into trouble with the “share” button to Facebook. If you share URL’s on your Facebook wall often you’ve probably noticed it will pull any thumbnail photos off the page from the URL and give you an arrow selector to pick which image you would like to use. If you take the time to make some nice post thumbnails and would like to make sure that specific image is the one pictured when sharing you can use some nifty metatags in your <head> section found in your WordPress theme’s “header.php” file.
<meta content="http://yourwebsite.com/pathto/image.png" property="og:image" />
In this case, the content=”” attribute contains the URL of the image you would like to use. If you want more information you can check out Facebook’s developer documentation.