New answers tagged oembed
Turns out the YouTube video in question had Embedding disabled by request. Tested with other YouTube videos with a 'dash' and they work fine (if embedding is not disabled).
Pretty sure you can just remove them entirely: remove_action( 'embed_content_meta', 'print_embed_comments_button' );
Ok I managed to solve this! Did some digging through how the embed system works, and it turns out it wasn't the use of wp_oembed_add_provider() that was wrong. Debugging autoembed_callback() in wp-includes\class-wp-embed.php showed that my YouTube URL was coming through but my Facebook URL never made it to this function. Echo'ing the post content before it ...
Top 50 recent answers are included