6

I have a :30 YouTube video that I want to embed onto Facebook and start playback at :16.

I thought this would be easy enough changing the parameters in the URL for share, or the URL in the embed code. But when I post this on Facebook, even though the URL's will link to YouTube and play at the correct :16 mark, they always start from :00 when playback is initiated inside Facebook.

Does Facebook strip all of the URL parameters for embeded YouTube videos? Is there a work-around?

I've tried:

https://youtu.be/yR8fp-XzJIo?t=16s

And I've tried:

<iframe width="560" height="315" src="https://youtu.be/yR8fp-XzJIo?t=16s" frameborder="0" allowfullscreen></iframe>

And I've tried:

<iframe width="560" height="315" src="https://youtu.be/yR8fp-XzJIo?start=16&end=38" frameborder="0" allowfullscreen></iframe>

Nothing seems to work. I have an idea that depends on this functionality, so I'd love some help if anyone knows a work-around or even a reason. Thanks so much, crew!

thebrownsquare
  • 61
  • 1
  • 1
  • 2

3 Answers3

6

Facebook behaved itself with a URL in this form:

https://www.youtube.com/watch?v=tgGlbVtd7wc&t=2m53s

user3673
  • 665
  • 5
  • 21
4

While I cannot think of a workaround, I think the reason why the video always starts from :00 is how the Facebook scraper works to fetch meta data for Open Graph objects. If you pop your url into the URL debugger tool you will see that og:url points to the actual url of the video. The scraper treats this as a redirect and takes data from there.

<meta property="og:url" content="http://www.youtube.com/watch?v=yR8fp-XzJIo">

Hence, when you share the video on your wall, the actual meta data for the video is taken from the site pointed to by the og:url tag which is the actual video without the t parameter that sets the playback start time.

bangdel
  • 2,523
  • 5
  • 28
  • 42
  • Ahhh. It appears you are correct. Thank you so much for the help! I know it used to work, as I can see examples posted in November that work, but it looks like that's no more. Vielen dank! – thebrownsquare Apr 25 '15 at 08:32
0

Embedded videos don't work. If you want to post a video starting at a specific position, click "Remove Preview" and they'll have to click the link.

Etienne Charland
  • 3,424
  • 5
  • 28
  • 58