Hi everybody,
I have a problem that is driving me nuts. And now its the time to see if you guys can help me. :)
I have a share to facebook link in every post and it works great, but! I have put the meta from facebook.com to get the right informations in the preview window, but I can only set an default thumbnail wich at the moment is my logo. But what I would like is to write some sort of php-code that will get the image that I have inserted to my post.
I dont know if you understand what i'm writing, but let me try to clear it a bit up:
My blog is at http://www.dethurah.com
-If you click on the "share to facebook" it will show the title and the content AND the thumbnail that I have told the share-function to use with the folowing meta-data in my header.php:
<meta name="title" content="<?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) {
single_cat_title(); echo " - "; bloginfo('name');
} elseif (is_single() || is_page() ) {
single_post_title();
} elseif (is_search() ) {
bloginfo('name'); echo " search results: "; echo wp_specialchars($s);
} else { wp_title('',true); }
?>" />
<meta name="description" content="Kasper Michael de Thurah" />
<link rel="image_src" href="http://www.dethurah.com/fb_dt_logo.png" />
Okay, so far so good!
If you look at my post here:
http://www.dethurah.com/iphone/euro-2008-pa-din-iphone/
-then you'll see that there is a small png-icon that I have inserted to the post. But I cant get it to show up in the preview-share-function. Not even if I remove the image_src metadata from my header.php.
Does this make sense at all? And if it does, can you please help me?
Thank you! :)