• Resolved qaws

    (@qaws)


    If my Post doesn’t have a Featured Image, Publicize will choose one off my Post page to display on the Facebook post, but it always chooses the wrong one! I’d like to be able to specify my own default image (i.e. our site logo) so that Publicize uses this instead of trying to make the decision for me!

    Thanks.

    http://wordpress.org/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You could set your site logo as the Featured Image on these posts.

    Another alternative would be to add a new Open Graph image meta tag to all pages on your site, like so:

    function jeherve_custom_img_og() {
        $fb_img = 'YOUR_IMAGE_URL';
        $fb_img_ouput = sprintf( '<meta property="og:image" content="%s" />', esc_attr( $fb_img ) );
    
    	echo $fb_img_ouput;
    }
    add_action( 'wp_head', 'jeherve_custom_img_og' );

    You can add this code to your theme’s functions.php file.

    it’s worth noting that this image will have to be at least 200x200px to be used by Facebook.

    You can see what Facebook sees by entering one of your posts’ URLs in Facebook Debugger:
    https://developers.facebook.com/tools/debug

    Thread Starter qaws

    (@qaws)

    Hi, I don’t want to set Featured Images for all my posts, sometimes it’s not appropriate. It would be better if I could specify a default image in the Publicize settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request: default image for FB if no Featured Image’ is closed to new replies.