-
AuthorPosts
-
August 4, 2014 at 7:55 am #299516
as i read on the forum here, you need to set a feature image in your homepage in order to Facebook show your thumbnail image in the preview when posting a post with a link to your website. but i did that and there is still no thumbnail image. any solutions?
http://www.tipulkarov.com- This topic was modified 10 years, 4 months ago by graphico.
August 4, 2014 at 7:57 am #299517https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.tipulkarov.com
as you can see the og:image is still empty.
other pages such as post pages show the thumbnail preview image. the only problem is in the home page.- This reply was modified 10 years, 4 months ago by graphico.
August 4, 2014 at 8:55 am #299529Hi!
Make sure that the plugin you are using to supply the OG data has the image set correctly. The theme itself doesn’t set any open graph data up since plugins can handle it better.
Regards,
DevinAugust 4, 2014 at 9:05 am #299533i’m not using any plugins for that…i have jetpack but i didn’t do anything with the sharing settings. i will be glad if you could have a look in my admin panel if you can.
- This reply was modified 10 years, 4 months ago by graphico.
August 4, 2014 at 9:06 am #299534should i use a plugin? in that case which would you recommend?
August 4, 2014 at 9:35 am #299540Jetpack is a plugin and it is what is currently adding the data to your sites source.
WordPress SEO by Yoast is the usual recommendation I see these days.
August 4, 2014 at 10:22 am #299565i found the solution without installing another plugin- and i’m writing it here in case anyone else has this problem:
go to plugins-jetpack-edit- look for jetpack/functions.opengraph.php
and add this code to the php file:/** * Adds default OpenGraph image. * Christoph Nahr 2014-02-28 * @param array $tags Array of OpenGraph tags. * @return Specified array, possibly modified. */ function add_default_image( $tags ) { // replace blank Jetpack default image with site header if ( $tags['og:image'][0] == "http://wordpress.com/i/blank.jpg" ) { unset( $tags['og:image'][0] ); $tags['og:image'][0] = 'http://www.tipulkarov.com/wp-content/uploads/2014/01/logo200x200.jpg'; } // always remove useless HTTPS image tags unset( $tags['og:image:secure_url'] ); return $tags; } add_filter( 'jetpack_open_graph_tags', 'add_default_image' );
replace the photo (http://www.tipulkarov.com/wp-content/uploads/2014/01/logo200x200.jpg) to your own of course.
must be at least 200x200pxcredit: this solution was taken from this link: http://news.kynosarges.org/2014/02/17/default-opengraph-image-for-jetpack/
- This reply was modified 10 years, 4 months ago by graphico.
August 4, 2014 at 10:57 am #299574 -
AuthorPosts
- The topic ‘Facebook sharing – thumbnail image’ is closed to new replies.