• Resolved spitfire18

    (@spitfire18)


    Hi,

    thanks for the plugin, my client has been able to successfully post to Apple News. We noticed a problem however that I don’t understand how to fix. Where an embedded Youtube video (iframe) is placed in an article, we have a link written View on the original site that follows. Apple sees it like this:

    {
     "role": "body",
     "text": "<a href="https://www.youtube.com/embed/-OEsfl1zefE?rel=0">View on the original site.</a>",
     "format": "html",
     "textStyle": {
     "fontSize": 14
    }

    I have no idea where this sentence is coming from, nor how to change it. No component JSON was customized, it is as it was on plugin activation. I’m also using the default theme, so shouldn’t be a problem from that either.

    I seem to have the exact same problem depicted in this issue, however it was never resolved.

    I’d really appreciate some help on this. Thanks!

    • This topic was modified 3 years, 10 months ago by spitfire18.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter spitfire18

    (@spitfire18)

    On further inspection, no videos appear for any of my articles. There is only the View on the original site link that appears.

    Example: https://apple.news/AWu76B4nGQRqYinkEoGzO5Q

    And now, although I’m not sure if it’s related, my client receives this message when posting/updating to his wordpress site:
    There has been an error with the API: INVALID_DOCUMENT – The value for the property “URL” at line 1 and column 379 is not valid: {image url} (keyPath components->0->components->0->URL)

    I have been embedding Youtube Live stream video links in WP for a couple of years. And now this morning I am getting a the error message “Sorry, this content could not be embedded.”

    Something has to to have happened to cause this. I am fully updated and have no idea why this is happening 🙁

    Even though that message appears, once the page is updated in WP, it displays correctly. Just FYI.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    The plugin is designed to embed YouTube videos via oEmbed, which occurs in the classic editor by pasting the URL of the YouTube video on its own line, or in Gutenberg using the YouTube embed block. Based on the error message that you’re reporting, I’m guessing that you’re using Gutenberg, and are using the generic embed block, rather than the specific YouTube embed block.

    Apple News does not support iframes. It does support embedding videos from YouTube and Vimeo specifically, but it requires that the embeds are in Apple News format, not in iframe format. Therefore, the plugin extracts the URL to the YouTube video from the standard YouTube oEmbed, or from the attributes on the YouTube embed block in Gutenberg, and any generic embeds receive the “view on original site” text.

    The text itself comes from the plugin and isn’t customizable via the interface, but could be customized by filtering the JSON that is generated by the plugin in your theme’s PHP code.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Closing due to inactivity. If you continue to have this issue, please open a new report and I will get back to you as quickly as I can.

    I’m having a similar issue as listed above. Using a Youtube Embed block in Guttenberg I get the error :

    There has been an error with the Apple News API: INVALID_DOCUMENT – The required property “URL” is missing at line 1 and column 2765. (keyPath components->1->components->5)

    Custom HTML Block with embed will publish but the Youtube Embed block does not.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Youtube embed not working; instead get link View On The Original Site’ is closed to new replies.