× Joomla Facebook Connect support forum

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

Active Subscriptions:

None
I can ping as well as nslookup just fine. But still I get the same error msg in my "Overview" tab :/
The topic has been locked.
Active Subscriptions:

None
I check that 443 was open and I was able to do telnet to api.facebook.com via this command. I checked it from my webserver's shell consol


This email address is being protected from spambots. You need JavaScript enabled to view it. [~]# telnet api.facebook.com 443
Trying 69.63.181.47...
Connected to api.facebook.com.
Escape character is '^]'.

my CURL info is as follows:

cURL support enabled
cURL Information libcurl/7.21.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5


Please Help !!
The topic has been locked.
Support Specialist
12 years 10 months ago #10872 by alzander
Babar,
I'll probably close this thread soon as the topic is starting to be confused over time (this was originally posted 6 months ago, and just revived last week).

As to your issue, I'm not sure what specific error message your getting. Is it the "Possible misconfiguration" warning or is the "Unable to reach api-read.facebook.com" error? If it's -not- the Possible Misconfiguration error, is your application info showing up in the upper left corner of your page (Site name, image, etc) that's read from Facebook? If not, can you re-check your API/Secret key settings just to make sure it's been set correctly?

Finally, have you tried logging in on the front-end to see what's happening there, or if there are any other/different errors reported?

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

None
In my Overview page, i see below two lines on top in red highlight background.
Facebook API Error: name lookup timed out
Facebook API Error: name lookup timed out

In left top corner "Configuration Information" box shows this:


Configuration Information
No Application Logo Set
Application Name:
Site URL:
Site Domain:
WARNING: POSSIBLE MISCONFIGURATION
We suggest updating your Site URL to: pakistanrc.com/quay2/
You can do this by visiting: Facebook Developers
Select your application -> Edit Settings -> Web Site.
You should configure the Site URL and Domain.

My Facebook APP settings are :

App ID
my-app-id
API Key
my-api-key
App Secret
my-app-secret
Site URL
pakistanrc.com/quay2/
Site Domain
pakistanrc.com

I have copy pasted the same settings in my FACEBOOK API page to put correct app id / secret etc etc....

I have FBConnect 3.2.2. It takes a long time to open "Overview" page and also it takes a long time in the front end to connect via facebook. It does connect successfully but it takes a lot of time (like 40 seconds or more). I moved my website from an old shared hosting account to a VPS and I see a lot of performance benefits and speed has improved overall. But, only for facebook connect I see this behaviour. Previuos to migration, it was working fine. But I checked that 443 SSL port was open and I could nslookup / ping to api.facebook.com.

On a Drupal forum I saw a person fixing this issue by changing api-read.facebook.com to api.facebook.com in his config files and confirmed it fixed the issue. I dont knwo where to update this :/

If you want, i can give you SA access ?
The topic has been locked.
Support Specialist
12 years 10 months ago #10976 by alzander
Babar,
Sorry to hear you're having issues. We've heard of this issue a few times, and we'd recommend trying to do an nslookup to api-read.facebook.com to see if you get the timeout there.

If so, or if you just want to test, you can change the address that Facebook tries to read from like you mentioned above by changing /administrator/components/com_jfbconnect/assets/facebook-api/facebook.php. In that file, at line ~152, you'll see the api-read address. Try taking off the -read portion, which we've heard from various users as well has helped with this issue.

If that doesn't help, let us know, and if you send us some Super Admin credentials which we can use to investigate further.

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

None
it solved my issue too.
The topic has been locked.
Support Specialist
12 years 10 months ago #10984 by alzander
Great! Glad to hear it worked for you. It's not something we won't implement across the board because it affects only a small subset of users and it's not what Facebook recommends.. however, whatever works, works :)

Let us know if you run into anything else, and good luck!
The topic has been locked.