WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. chomo
    Member
    Posted 11 months 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.

    http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/

  2. chomo
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.