Enabling Facebook Connect causes extremely slow page loads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • starstryder
    New Member
    • Apr 2012
    • 3

    [Forum] Enabling Facebook Connect causes extremely slow page loads

    Hi All,

    I'm working on a dev site to test VB 4.1.12 and Facebook Connect. I'm getting page load times of several minutes and would love some help sorting what I am missing.

    UPDATED - I HAD TO DISABLE FACEBOOK SO I COULD MOVE ON DEVELOPING
    Problem site: no longer applicable

    - I have a working real certificate (specific to the dev site), and forums work under https
    - I have Curl with SSL and OpenSSL working in PHP (checked with phpinfo() )
    - options > Facebook Options show "Supported" for Facebook Connect
    - The Facebook app debugger shows no errors when pointed at http://mysite.org/forum/ or http://mysite.org/forum/forum.php (it does have warning about the title)

    When I enable Facebook, load times for pages jump to minutes, but eventually everything loads. Clicking "Connect" from a page or "Connect with Facebook" from the register page I can get the popup, but then it doesn't do anything.

    Confirmed in Safari and Chrome on OSX.

    At the same time this is happening, load times on this site (which has the same facebook connect) is fairly zippy, so it doesn't appear to be the FB servers causing the lag.

    If I view the javascript console while it stuggles to load the page, I see it "waiting" for a long time, and then it spits out, all at once (in two columns that won't copy nicely):
    forum/clientscript/vbulletin-core.js?v=4112:11
    This browser is AJAX compatible
    vbulletin-core.js:11
    Firing System Init
    vbulletin-core.js:11
    Fire vB_XHTML_Ready
    vbulletin-core.js:11
    Fetch Cookie :: vbulletin_collapse (null)
    vbulletin_overlay.js:11
    vB_Overlay :: Set status = 2 (Load Overlay HTML)
    vbulletin_overlay.js:11
    vB_Overlay :: Set status = 0 (close)
    vbulletin-core.js:11
    AJAX Error: Status = -1: transaction aborted


    I'm running a LAMP stack using Ubuntu on an Amazon micro instance. I checked CPU load and it's <<10% so that's not the issue. Other pages on the site (the php test page, for instance) load in microseconds.

    This is a completely clean install, and the only user is the admin user and the eventually created user from Facebook Connect.

    I have tried both with http and https (changing the URL in the Facebook app as needed).

    Any ideas? I'd love to enable Facebook connect, but I need load times under a second, not under and hour.

    Cheers,
    Pamela
    Last edited by starstryder; Sun 15 Apr '12, 8:22am.
  • starstryder
    New Member
    • Apr 2012
    • 3

    #2
    More details

    Can anyone who has Facebook Connect working in 4.1.12 please tell me what "Website: Site URL" they are using in their app?

    I've spent several hours trying to sort why my pages won't load in a timely manner once a facebook link is clicked. The problem appears to be with the vUrl.

    For instance, this code hangs for tens of seconds, and then most of the array elements come back empty.
    class_facebook.php, line 247
    Code:
                  // init the facebook graph api 
    $this->facebook = new Facebook_vUrl(array('appId'  => $facebookappid, 'secret' => $facebooksecret, 'cookie' => true ));
    Also, pages consistently take 2.2 minutes to load after you initially click the facebook logo. This would imply a timeout issue I think

    I compared my facebook debugger code to that of this site and noticed my page is returning 206 when scraped, while this site returns 200. I suspect this may be the time out issue.

    I can get rid of the circular redirect error by adding a trailing slash to the og:url in functions_facebook.php line 133, but I'm not doing that at the moment in hopes someone can help sort this issue.

    This is a plain Jane installation with all defaults. I have only edited the site to be https and enabled facebook connect.

    Cheers,
    Pamela
    Last edited by starstryder; Sun 15 Apr '12, 8:22am.

    Comment

    • JulianD
      Senior Member
      • Mar 2002
      • 305
      • 3.8.x

      #3
      Same problem here. Facebook connect makes my board 0.4-0.5 seconds slower when enabled. I'm trying to find solutions to this but I can't find anything yet.
      ~ LANeros.com ~

      Comment

      • IcEWoLF
        Senior Member
        • Jul 2008
        • 928
        • 4.1.x

        #4
        I am having the same issues.
        Things load fine here at vb.com but many website owners are facing this issue.
        The 47 Ronin Gaming - www.47r-squad.com

        Comment

        • olijo
          Member
          • Sep 2006
          • 40
          • 4.2.x

          #5
          Same thing for me on our site http://forum.ooblada.com/.
          It's a real problem, because we use facebook connect only...

          Comment

          • GamerPerfection
            Senior Member
            • Feb 2006
            • 510
            • 4.2.X

            #6
            Originally posted by olijo
            Same thing for me on our site http://forum.ooblada.com/.
            It's a real problem, because we use facebook connect only...
            Your site seemed to load in good time for me.
            http://www.gamerperfection.com/images/gp-bar.png http://www.gamerperfection.com/images/facebook-32.pnghttp://www.gamerperfection.com/images/twitter-32.pnghttp://www.gamerperfection.com/images/youtube-32.png

            Comment

            • olijo
              Member
              • Sep 2006
              • 40
              • 4.2.x

              #7
              Originally posted by GamerPerfection
              Your site seemed to load in good time for me.
              You need to see first thread who say : the problem occurs only when connected via facebook connect.
              Regards,
              Olivier

              Comment

              • GamerPerfection
                Senior Member
                • Feb 2006
                • 510
                • 4.2.X

                #8
                Oh ok, i thought he was just referring to having the facebook connect enabled.
                http://www.gamerperfection.com/images/gp-bar.png http://www.gamerperfection.com/images/facebook-32.pnghttp://www.gamerperfection.com/images/twitter-32.pnghttp://www.gamerperfection.com/images/youtube-32.png

                Comment

                • olijo
                  Member
                  • Sep 2006
                  • 40
                  • 4.2.x

                  #9
                  Originally posted by GamerPerfection
                  Oh ok, i thought he was just referring to having the facebook connect enabled.
                  No problem

                  Comment

                  • TheLastSuperman
                    Senior Member
                    • Sep 2008
                    • 1799

                    #10
                    Originally posted by starstryder
                    Can anyone who has Facebook Connect working in 4.1.12 please tell me what "Website: Site URL" they are using in their app?
                    This needs to be your forum url, if you do not have the app setup properly then it will act finicky if enabled and having issues connecting etc.

                    Also if facebook is very busy and you notice a slowdown while using it, expect the same on your forum since it is connecting to it.


                    Former vBulletin Support Staff
                    Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
                    Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

                    Comment

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

                      #11
                      Try removing this line from the code:
                      <vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if>

                      Start with FORUMHOME and if Facebook Connect still works afterwards, then you'll need to do a search and remove it from every template is occurs in. Unfortunately, this is a lot of templates.

                      I've created a JIRA issue for this: http://tracker.vbulletin.com/browse/VBIV-15335
                      Translations provided by Google.

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

                      Comment

                      • CozmicShredder
                        Member
                        • Aug 2004
                        • 50
                        • 4.2.X

                        #12
                        Just recently been getting horrible connection from Facebook to my website using vb 4.20 Guessing somethings changed recently... I had to disable the Facebook connect... Been using it since Vbulletin came out with the connection thingy was causing horrible lag to the website... All pages seem good now...

                        Comment

                        • IcEWoLF
                          Senior Member
                          • Jul 2008
                          • 928
                          • 4.1.x

                          #13
                          Originally posted by Wayne Luke
                          Try removing this line from the code:
                          <vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if>

                          Start with FORUMHOME and if Facebook Connect still works afterwards, then you'll need to do a search and remove it from every template is occurs in. Unfortunately, this is a lot of templates.

                          I've created a JIRA issue for this: http://tracker.vbulletin.com/browse/VBIV-15335
                          Hi Wayne, I've tried that but no help. :/
                          The 47 Ronin Gaming - www.47r-squad.com

                          Comment

                          • bcilloniz
                            Member
                            • Apr 2010
                            • 41
                            • 4.2.X

                            #14
                            I got the same problem. I have to disable my facebook connect, because it turns my web page very very slow. I have months trying to fix this problem, but nothing yet. Im with the latest verison 4.2.0

                            If anyone got the answer, please share it with us. I loose when Facebook Connect is disabled.

                            Please HELP!

                            PD: I see Facebook Connect is working fine here

                            Comment

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

                              #15
                              We need to be able to recreate the problem. So someone with the problem needs to be able to enable Facebook Connect and suffer slow page loads for at least a day or two so we can see what is happening. I've never been able to recreate this on any server I have access to.
                              Translations provided by Google.

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

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...