• Resolved bojan259

    (@bojan259)


    Hello,

    I’m trying to setup IA for my client’s WP page, but keep getting rejected by Facebook’s review team because we’re missing text, images or embeds. The text and images are being displayed correctly, but my client’s Youtube videos aren’t being generated – no markup is being created at all. The problem is that my client created original Youtube content that he shares in every one of his posts.

    I’m using the following code:

    <figure class=”op-interactive”>
    <?php echo wp_oembed_get(get_field( ‘video_url’ ), array( ‘width’ => ‘800’, ‘height’ => ‘450’)); ?>
    </figure>

    It translates to:

    <figure class=”op-interactive”>
    <iframe width=”800″ height=”450″ src=”https://www.youtube.com/embed/VIDEO-URL&#8221; frameborder=”0″ allowfullscreen> … </iframe>
    </figure>

    In other words, the markup is the same as stated in Facebook’s documentation.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Youtube Embeds’ is closed to new replies.