Embed from Facebook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnatoliyOFF
    Member
    • Jun 2015
    • 54
    • 5.2.x

    [Bug / Issue] Embed from Facebook

    Hi,

    I upgraded to 5.4.5 and now when I try to post facebook code for embeding a post or a picture I always get the error (see picture). I used to post it without problems before (HTML on).
    I turned off plugin (tapatalk), I used the default skin - nothing helped.

    Please help.
    Oregon Fishing Forum
  • AnatoliyOFF
    Member
    • Jun 2015
    • 54
    • 5.2.x

    #2
    I tried to put an embed code from Instargramm into a forum post. The same result - something doesn't work (see the picture). However when I created a test html file and put both codes in it both work just fine. So it's some bug with vBulletin.

    Please help.
    Attached Files
    Oregon Fishing Forum

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24286
      • 6.0.X

      #3
      There is no default function to embed a Facebook post into a forum post.

      Facebook's embed code requires the use of html which is not enabled by default (and should not be, as it's a security risk).
      The error shown is a rejection from Facebook over which vBulletin has no control.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • AnatoliyOFF
        Member
        • Jun 2015
        • 54
        • 5.2.x

        #4
        Originally posted by Mark.B
        There is no default function to embed a Facebook post into a forum post.

        Facebook's embed code requires the use of html which is not enabled by default (and should not be, as it's a security risk).
        Dear Mark.B,

        Thank you for your reply. I understand what you mean, however I'm talking about a possibility to post html for me as an admin only. I'm not talking about providing such an option for everyone.
        I was able to do embed posts from facebook & instagram before I upgraded to 5.4.5. Please take a look at the attached pictures.

        Oregon Fishing Forum

        Comment

        • AnatoliyOFF
          Member
          • Jun 2015
          • 54
          • 5.2.x

          #5
          Originally posted by Mark.B
          The error shown is a rejection from Facebook over which vBulletin has no control.
          Not exactly. Here is what I just found out. Here is the code:

          HTML Code:
          <iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2FOre gonFishingForum%2Fposts%2F2321374181224177&wid th=500" width="500" height="575" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
          I put it in a test html page and it works. I post it on my vBulletin (with advanced option HTML ON) and it doesn't work. However when I look at a page code I can see that vbulletin changed the code into

          HTML Code:
          &lt;iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2FOre gonFishingForum%2Fposts%2F2321374181224177&amp;wid th=500" width="500" height="575" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"&gt;&lt;/iframe&gt;
          The code is "broken" that's why Facebook rejects it. Plese take a look at "wid th=500". "width" became two words "wid" and "th".
          Oregon Fishing Forum

          Comment

          • In Omnibus
            Senior Member
            • Apr 2010
            • 2310

            #6
            What happens if you set it to "HTML On - Convert Linebreaks?" Does it still break the link?

            Comment

            • AnatoliyOFF
              Member
              • Jun 2015
              • 54
              • 5.2.x

              #7
              Originally posted by In Omnibus
              What happens if you set it to "HTML On - Convert Linebreaks?" Does it still break the link?
              yes
              Oregon Fishing Forum

              Comment

              • AnatoliyOFF
                Member
                • Jun 2015
                • 54
                • 5.2.x

                #8
                it looks like vbulletin brakes text strings in posts if they are longer than 80-90 characters.
                Oregon Fishing Forum

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 73976

                  #9
                  Originally posted by AnatoliyOFF
                  it looks like vbulletin brakes text strings in posts if they are longer than 80-90 characters.
                  vBulletin has always done this. Since vBulletin 2.0. The default is actually 50 characters. You can change this in the AdminCP under Settings -> Options -> Topic Display Options. Change the "Number of Characters Before Wrapping Text" value.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • AnatoliyOFF
                    Member
                    • Jun 2015
                    • 54
                    • 5.2.x

                    #10
                    Originally posted by Wayne Luke

                    vBulletin has always done this. Since vBulletin 2.0. The default is actually 50 characters. You can change this in the AdminCP under Settings -> Options -> Topic Display Options. Change the "Number of Characters Before Wrapping Text" value.
                    It helped! Thanks a lot Wayne Luke! )
                    Oregon Fishing Forum

                    Comment

                    • glennrocksvb
                      Former vBulletin Developer
                      • Mar 2011
                      • 4011
                      • 5.7.X

                      #11
                      A better alternative is to create a custom BBCode so you don't have to enable HTML and post the iframe tag everytime.

                      For Instagram BBCode, I created this one.

                      Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                      Comment

                      Related Topics

                      Collapse

                      Working...