Topic-icon Extremely slow loading using JFBConnect with Jomsocial

Active Subscriptions:

None
13 years 1 month ago - 13 years 1 month ago #32676 by mailcarp
Hi there,

My client site is solely built for jomsocial 2.8.4 and using JFBConnect latest version for Joomla 2.5.9 as Facebook login. It's an awesome component but each time a new user or returning user trying to login to the website, I will have to wait like at least 30 seconds to load.

It will show you are logging in with Facebook credentials and then it stuck there for 30-60 seconds before it loads finish. This will cost some new registrations and desire for returning users.

If you need me to provide my client site, please pm me.

Thank you.
Last edit: 13 years 1 month ago by mailcarp.
The topic has been locked.
Support Specialist
That's definitely too long and not a common issue. First off, it looks like you were running v4.x of JFBConnect at one point. Do you know if the sluggishness only started when you upgraded to JFBConnect v5.0, or if it's always been there?

Next, can you try disabling any Social Profile plugins you have enabled (even JomSocial) and try logging in with a Facebook user. See if that process goes faster. If so, it could be an issue with the information your fetching.

If it still goes slow when no profile plugins are enabled, then it means there's something causing a delay between your server and communication with Facebook. We can help come up with some suggestions to diagnose the problem, but you'd need technical person or hosting company support to likely iron out any issues that are found.

Hope that helps get you started, and let us know how the test above go.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hello Alex,

It has already been there since version earlier before 5.0. I didn't report because we haven't launch live yet.

And yes I have disabled all plugins by jomsocial and yours but it still took around 35 seconds to load.

Please let me know how do I diagnose the issue. We have people to assist on this.

Thank you.
The topic has been locked.
Support Specialist
The first thing to try is to go into the Configuration - Facebook API area of JFBConnect set the "Disable SSL Certificate Validation:" setting to "Yes". Also, set the "Display API Errors On Front-End:" setting to yes. That will show any connection errors JFBConnect can detect.

Next, do connection tests from your server to the following addresses:

api.facebook.com/
api-read.facebook.com/
graph.facebook.com/
www.facebook.com/

You should do both nslookup and ping tests to make sure that there are no excessive delays in contacting those sites and that all the lookups and translations are being done properly. Common causes for sluggishness are:
* Misconfigured DNS servers that aren't returning (or returning very slowly) the proper IP addresses for the sites above
* Misconfigured SSL root certificates, which prevents proper secure communication to Facebook. The first setting mentioned above should work around this. You *do not* need an SSL certificate for your site, but your server needs to be able to make outgoing SSL requests to Facebook.
* Firewalls that are preventing or throttling outgoing connections.

Hope that helps get you started, but let us know what you find.

Thanks,
Alex
The topic has been locked.