Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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, 3 months ago by graphico.
    #299517

    https://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, 3 months ago by graphico.
    #299529

    Hi!

    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,
    Devin

    #299533

    i’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, 3 months ago by graphico.
    #299534

    should i use a plugin? in that case which would you recommend?

    #299540

    Jetpack 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.

    #299565

    i 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 200x200px

    credit: 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, 3 months ago by graphico.
    #299574

    Hi!

    Glad you found a solution and thank you for sharing! :)

    Cheers!
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Facebook sharing – thumbnail image’ is closed to new replies.