Support » Plugin: Smart YouTube PRO » Thumbnail issue in facebook post

  • emmanuelfamillelopez

    (@emmanuelfamillelopez)


    Hi,

    There is an issue with your extension.
    in your code smartyoutube.php line 137 you put
    echo '<meta property="og:image" content="http://i.ytimg.com/vi/' . $matches[0][5] . '/default.jpg" />';

    This thumbnail can’t be use by facebook because :
    “Provided og:image is not big enough. Please use an image that’s at least 200×200 px” (source : https://developers.facebook.com/tools/debug)

    you have to change the code :
    echo '<meta property="og:image" content="http://i.ytimg.com/vi/' . $matches[0][5] . '/hqdefault.jpg" />';

    Can you change that for the next version ?

    Thanks

    https://wordpress.org/plugins/smart-youtube/

  • The topic ‘Thumbnail issue in facebook post’ is closed to new replies.