WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Youtube Video Posts Plugin
og:title image for facebook connect (2 posts)

  1. jospBln
    Member
    Posted 2 years ago #

    Hi,

    I use 'Add link to facebook' and whenever the Automatic Youtube Plugin posts a video, there is no og:image set.

    So all the videos are shared on facebook without an image.

    Is there a way to set og:image? I already asked the developer of "add link to facebook"
    http://forum.bokhorst.biz/add-link-to-facebook/how-is-ogimage-created

    Best, Joerg

    http://wordpress.org/extend/plugins/automatic-youtube-video-posts/

  2. mpraetzel
    Member
    Plugin Author

    Posted 2 years ago #

    You would have to do this manually. using the plugin's function:

    <?php tern_wp_youtube_image(); ?>

    maybe like this:

    <?php if ( get_post_meta($post->ID,'_tern_wp_youtube_video',true) ) { ?>
    <meta property="og:image" content="<?php tern_wp_youtube_image(); ?>" />
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic