1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Embedded Facebook Videos Show No Preview Image

Discussion in 'Resolved Bug Reports' started by DeltaHF, Oct 25, 2014.

  1. DeltaHF

    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:

    Facebook has probably changed something on their end.
  2. Mike

    Mike XenForo Developer Staff Member

    It looks to me that the code now needs to be:
    <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.
    DeltaHF, soloarquitectura and Chris D like this.

Share This Page