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

**URL:** https://meta.discourse.org/t/automatically-adding-opengraph-video-tag-if-a-video-is-embedded-in-post/45766
**Category:** Feature
**Created:** [2016年六月16日 15:39 UTC](https://meta.discourse.org/t/automatically-adding-opengraph-video-tag-if-a-video-is-embedded-in-post/45766 "2016-06-16T15:39:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [2016年六月16日 15:39 UTC](https://meta.discourse.org/t/automatically-adding-opengraph-video-tag-if-a-video-is-embedded-in-post/45766/1 "2016-06-16T15:39:22Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)
#### Post date: [2016年七月31日 14:23 UTC](https://meta.discourse.org/t/automatically-adding-opengraph-video-tag-if-a-video-is-embedded-in-post/45766/2 "2016-07-31T14:23:45Z")

</div>

Has anyone else run into this issue?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年一月6日 01:02 UTC](https://meta.discourse.org/t/automatically-adding-opengraph-video-tag-if-a-video-is-embedded-in-post/45766/3 "2017-01-06T01:02:03Z")

</div>

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