× Joomla Facebook Connect support forum

Topic-icon Facebook API Error: connect() timed out! [SOLVED]

Support Specialist
12 years 11 months ago #9930 by alzander
Usuario,
I'm sure we can help out, but can you let us know what version of JFBConnect you're using? Also, please post from the account you subscribed from. Priority support is for subscribers only.

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

None
my version is jfbc is 3.2, and joomla is 1.5.15,,
The topic has been locked.
Active Subscriptions:

None
please helpme,,, I speak little english, I from mexico,.,, tell me what i need to do,,,

very tansk
The topic has been locked.
Support Specialist
12 years 11 months ago #9936 by alzander
Usuario,
Your english is fine. Your version of Joomla is old. We'd recommend upgrading to 1.5.23. Also, please upgrade JFBConnect to 3.2.1.

For further support, you need a subscription. Please choose use the page below to subscribe:
www.sourcecoast.com/extensions/jfbconnect

Thank you,
Alex
The topic has been locked.
Active Subscriptions:

None
I dont have the pass of my client,,,

mi client pay the jfbconnect version 3.2.1. and mee worked with these,....

plsease helpme,, only tell me,,, what is the port necesari,, between my joomla and facebook

Tansk
The topic has been locked.
Support Specialist
12 years 11 months ago #9949 by alzander
The port is #443, which is used for SSL communications. You'll need to check that your server can accept incoming connections, and make outgoing connections over that port.

Hope this helps. If it doesn't, we may need to do some testing on your site to determine the cause of the issue. I'd contact your hosting company to see if they can help you check that you can contact to the addresses listed above:
api.facebook.com/
api-read.facebook.com/
graph.facebook.com/
www.facebook.com/

Good luck
The topic has been locked.
Active Subscriptions:

None
We're having a similar problem with our hosting provider.

We've verified with this code :

<?php
$curlcontent="curl";
$curlstatus="Curl is not installed - This is a Problem";
if (function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'api.facebook.com/restserver.php');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0');
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$curlcontent = curl_exec($ch);
curl_close($ch);
$curlstatus="Curl is available but cannot access Facebook - This is a problem ";
if (strlen($curlcontent)>6) {$curlstatus="Curl is available and can access Facebook - All is OK";}
}
print $curlstatus;
print "\n";
print $curlcontent;
print "\n";
?>

To see if cURL and port 443 were open and they seem to be but whenever we try to create a new account we get a very long delay that sometimes lead to a 500 error.

We're running Joomla 1.5.23 and JFBC 3.2.2

The site is www.fetenationale.qc.ca.

If cURL and the port seem open is there anything else that might be going on ?
The topic has been locked.
Support Specialist
12 years 10 months ago #10864 by alzander
David,
Try enabling "Show Facebook API errors on the Front-end" in the Facebook API configuration tab, and let us know if you see any errors.

I just tried to register, and agree, it did take some time to load the page below:
www.fetenationale.qc.ca/creer-ma-fete.html

However, I then tried to load the page in another browser where I was not logged into Facebook, and it still took some time. I'm not sure if that's a server issue, that page, or something else, but since it's happening whether I go to it directly or by being redirected after trying to login through Facebook, that seems to indicate it may not be JFBConnect specific. On reloading that page after the slow load, it seemed to go much faster.

In either case, I wasn't automatically registered, which is obviously a bigger problem. Can you tell me what SEF extension you're using? If it's Joomla's built in SEF, that should work no problem. If it's a 3rd party one, one thing to try is to tell that extension to 'skip' JFBConnect altogether. It may, or may not help, and if you don't know what I'm talking about, just let me know.. we can generally help you with specific instructions once we know what you're using.

Hope this helps get you started, but definitely let us know what you find, or if the above doesn't help at all. We'll do what we can to get you all setup!

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

None
Alex,

We've enabled the «Show Facebook API errors on the front-end»

We are using JoomSef but we have disabled JFBConnect.

I'll DM you the site's access if you want to have a look at what's happening.

Thanks,

David
The topic has been locked.
Active Subscriptions:

None
We were able to hack a fix by changing :

/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebook.php

line 153

'api_read' => 'api-read.facebook.com/',

for

'api_read' => 'api.facebook.com/',

This seems to do the trick.
The topic has been locked.