fb-instant-articles
fb-instant-articles copied to clipboard
YouTube embed not working in FIA
Steps required to reproduce the problem
- Create post using block editor
- 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
Exact same behavior here. Also happening for twitter embeds.
@amitmalewar @ixnaypt Were either of you able to work out a solution for this?
Not at all @danielbachhuber :(
@danielbachhuber @ixnaypt For now, consider using Classic block to embed YouTube video. This will help.
Thanks @amitmalewar, will try and let you know. But have you guys been able to reproduce this in order to deploy a fix?
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.
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" }] }
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.