Fixed Embedded Facebook Videos Show No Preview Image

DeltaHF

Well-known member
All Facebook videos embedded to XenForo no longer display a preview image. The video plays as normal when clicked. I have confirmed this in multiple browsers, on both Windows and OS X.

Here's a sample:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Facebook has probably changed something on their end.
 
It looks to me that the code now needs to be:
Code:
<div class="fb-post" data-href="https://www.facebook.com/video.php?v={$id}" data-width="500"><div class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/video.php?v={$id}">https://www.facebook.com/video.php?v={$id}</a></div></div>
This has to be coupled with some JS changes to ensure the FB SDK gets loaded as necessary. I don't see any other way around it and this is derived from the now official embedding code.

Historically, we haven't completely replaced embed HTML during an upgrade though it may be necessary here.
 
Back
Top Bottom