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

Fixed Problem With Facebook Video

Discussion in 'Resolved Bug Reports' started by tafreehm, Apr 5, 2013.

  1. tafreehm

    tafreehm Well-Known Member

    Hello,
    Ever since I upgraded to 1.1.3 facebook videos does not show up. Instead there is a white box.
    There are no errors, I am not sure what exactly is causing the error.

    This is what I have under "BB Code Media Site: Setting"

    Match URL "facebook.com/*photo.php?v={$id:digits}"

    Embed HTML:
    Code:
    <object width="500" height="300" data="http://www.facebook.com/v/{$id}" type="application/x-shockwave-flash">
        <param name="movie" value="http://www.facebook.com/v/{$id}" />
        <param name="allowfullscreen" value="true" />
        <param name="wmode" value="opaque" />
        <embed src="http://www.facebook.com/v/{$id}" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="500" height="300" />
    </object>
    In match url field I changed video.php to photo.php as facebook has changed its url structure for videos. It was working fine until I upgraded to 1.1.3

    Please advice.

    --------------------------
    Here is the fix
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Can you embed it here?
     
  3. tafreehm

    tafreehm Well-Known Member

  4. tafreehm

    tafreehm Well-Known Member

    can you see it ? I have posted it here...
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

  6. tafreehm

    tafreehm Well-Known Member

    xenforo does not take/accept updated facebook video url structure. I had to chang photo.php to video.php which does not support by fb anymore. However, Its acting same on my forum as well. Even though, my forum auto embeds the updated facebook' URL structure.

    Why don't you try to post something and see if that works.
    https://www.facebook.com/photo.php?v=156057317891198
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    It could be a protected video.
     
  8. tafreehm

    tafreehm Well-Known Member

  9. Brogan

    Brogan XenForo Moderator Staff Member

    Then Facebook have changed something.

    Perhaps they are now restricting embedding externally.
     
  10. tafreehm

    tafreehm Well-Known Member

    maybe...
    I posted this long ago, and now it is not working.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    None of my own videos work and they are public.
     
  12. tafreehm

    tafreehm Well-Known Member

    yeap, something from facebook then. For a moment I thought I found a bug in Xenforo.. but naahh that isn't easy.. :'(
     
  13. Sportsoutlaw

    Sportsoutlaw Member

    One of my moderators was just asking me the same thing, trying to figure out why it isn't working.
     
  14. EQnoble

    EQnoble Well-Known Member

    new Embed HTML:

    Code:
    <iframe src="https://www.facebook.com/video/embed?video_id={$id}" width="640" height="360" frameborder="0"></iframe>

    I don't remember what the default Match URLs: was but I switched it to use regex and used this
    Code:
    #www\.facebook\.com\/photo.php\?v=(?P<id>[0-9]+)(\S)*#siu
     
  15. 0xym0r0n

    0xym0r0n Well-Known Member

    I literally just tried to embed a video. I can link to it for anyone to see, but I can't embed it! :(
    Tried doing a lot of things but I just get a blank video if i try to embed it.
     
  16. EQnoble

    EQnoble Well-Known Member

     
  17. I can't even see the videos on Facebook.

    I just get a black box no matter what browser i use. Maybe FB messed up ? :rolleyes:
     
  18. 0xym0r0n

    0xym0r0n Well-Known Member

    Yeah.... I tried your method and it isn't working for me :(
     
  19. Brogan

    Brogan XenForo Moderator Staff Member

    You just need to switch to the iframe code which has already been posted above.

    Code:
    <iframe src="http://www.facebook.com/video/embed?video_id={$id}" width="640" height="360" frameborder="0"></iframe>
    For Match URLs you can use this:
    Code:
    facebook.com/*video.php?v={$id:digits}
    facebook.com/*photo.php?v={$id:digits}
     
    Cooper, AndreaMarucci and 0xym0r0n like this.
  20. 0xym0r0n

    0xym0r0n Well-Known Member

    :love: Thanks brogan. I was trying to use EQnoble's code but it didn't work.
    I see where I went wrong too!
    When I tried to modify the match URLs I didn't know I had to use :digits and was just using $id
     

Share This Page