WP Facebook Open Graph protocol
[resolved] og:image too small (3 posts)

  1. chomo
    Posted 3 years ago #

    Hello !

    There's a little problem for me : the meta og:image takes the featured image, but resize it to a smaller size which is too small for facebook : 300x140 (here is the open graph warning : "Provided og:image is not big enough. Please use an image that's at least 200x200 px").

    The original image's dimensions are 630x295.


  2. chomo
    Posted 3 years ago #

    Everything is okay when I edit line 156 of the file 'wp-facebook-ogp.php' from :

    $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' );

    to :

    $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );

    The large image is ok, and Facebook re-size it automatically

  3. Chuck Reynolds
    Plugin Author

    Posted 3 years ago #

    Fixed in the beta referenced in the pinned topic in the forum. needs more testing but feel free to help test.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Facebook Open Graph protocol
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.