Automatically adding Opengraph video tag if a video is embedded in post

(James Cook) #1

I have a post with an embedded youtube video that I wanted to share on Facebook. It would be great if the og:video meta tag was set by Discourse when it detects a video in the post so that Facebook picks it up and displays it.

For those with experience, would it be that difficult to implement?

(James Cook) #2

Has anyone else run into this issue?

(Jeff Atwood) #3

It is a good idea, particularly if the post / topic has no images to grab.