fb-instant-articles icon indicating copy to clipboard operation
fb-instant-articles copied to clipboard

YouTube embed not working in FIA

Open amitmalewar opened this issue 4 years ago • 7 comments

Steps required to reproduce the problem

  1. Create post using block editor
  2. Add Video from Youtube using Youtube block

Expected Result

FIA should display a YouTube embed.

Error

Invalid selector for fields (image.url). The node being transformed was <figure> in the context of InstantArticle within the Rule ImageRule with these properties: { image.url=StringGetter}

Version Info

Latest Version

  • Plugin version: 4.2.1
  • WordPress version: 5.4.2
  • PHP version: 7.3

amitmalewar avatar Jun 29 '20 13:06 amitmalewar

Exact same behavior here. Also happening for twitter embeds.

ixnaypt avatar Jul 11 '20 09:07 ixnaypt

@amitmalewar @ixnaypt Were either of you able to work out a solution for this?

danielbachhuber avatar Aug 31 '20 21:08 danielbachhuber

Not at all @danielbachhuber :(

ixnaypt avatar Sep 01 '20 10:09 ixnaypt

@danielbachhuber @ixnaypt For now, consider using Classic block to embed YouTube video. This will help.

amitmalewar avatar Sep 01 '20 11:09 amitmalewar

Thanks @amitmalewar, will try and let you know. But have you guys been able to reproduce this in order to deploy a fix?

ixnaypt avatar Sep 01 '20 15:09 ixnaypt

This is still happening in WordPress 5.5.1 and 4.2.1. Other than updating everything to a Classic Block to embed the videos is there anything else you'd recommend? We have your plugin on various sites.

keyinora avatar Sep 03 '20 16:09 keyinora

Wrote the following rule, till this can be fixed in the plugin itself

{ "rules": [{ "class": "PassThroughRule", "selector": "figure.wp-block-embed-youtube" }, { "class": "PassThroughRule", "selector": "div.wp-block-embed__wrapper" }] }

keyinora avatar Sep 03 '20 17:09 keyinora

This issue has been marked stale because it has been open for 30 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

github-actions[bot] avatar Sep 24 '22 00:09 github-actions[bot]