× Joomla Facebook Connect support forum

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

Active Subscriptions:

None
13 years 4 months ago - 13 years 4 months ago #5966 by avanzed
After configure all this error appears in Overview. I have revised all configuration several times. It's like if can't connect with facebook.

Last edit: 13 years 4 months ago by avanzed.
The topic has been locked.
Support Specialist
13 years 4 months ago #5967 by alzander
That's a new one to us. We'll agree, it seems as though you can't connect to Facebook itself, which is obviously strange. We're not seeing that on any of our development systems, so it doesn't appear to be an outage with Facebook Connect, which does happen (though rarely).

If you have SSH access to your server, can you try typing the following commands, and let us know what you get? You should see something similar to what's posted below. This verifies that your server can 'see' Facebook. If you don't have access, you may need to contact your hosting provider to see if there's any reason your site can't access these addresses.

Command:
nslookup api.facebook.com
This verifies that your site can lookup the actual IP address of the Facebook API site. Should see something like:
Non-authoritative answer:
Name:   api.facebook.com
Address: 69.63.181.48

Command:
ping api.facebook.com
This verifies that you can send and receive from that address. If this fails, would indicate a firewall or other security mechanism preventing communication. Should see (Press cntrl-C to stop the 'ping'):
PING api.facebook.com (69.63.181.46) 56(84) bytes of data.
64 bytes from api-11-01-snc2.facebook.com (69.63.181.46): icmp_seq=1 ttl=245 time=46.7 ms
64 bytes from api-11-01-snc2.facebook.com (69.63.181.46): icmp_seq=2 ttl=245 time=46.8 ms
64 bytes from api-11-01-snc2.facebook.com (69.63.181.46): icmp_seq=3 ttl=245 time=46.6 ms

There are other possibilities regarding server/site configuration issues, but that error seems to indicate everything's good on your site's end... but when the request goes out to Facebook, it's just going to a black hole...

Let us know if this helps, or is way over your head. Unfortunately, the next step would likely be to contact your hosting provider.

Thanks!
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #5970 by avanzed
I will write an email to our hosting provider. I will write here the information that they give us

Thanks.
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #5987 by avanzed
Hi again.

Our Hosting answered:

piedra:~# nslookup api.facebook.com
Server: 80.91.89.15
Address: 80.91.89.15#53


Non-authoritative answer:
Name: api.facebook.com
Address: 66.220.147.14

The ping is closed, but they said me that the ping isn't the problem. They asked me which ports need the api. (I guess to open the ports on our server )

Need this info if it possible
The topic has been locked.
Support Specialist
13 years 4 months ago #5992 by alzander
All requests are made using cURL, which means they act like 'normal' http traffic. The 4 URLs that are used for different data from Facebook are:
api.facebook.com/
api-read.facebook.com/
graph.facebook.com/
www.facebook.com/

So, the things to check are that:
* These 4 addresses can be accessed over SSL (port 443)
* Your cURL library has SSL support installed (This can be found in Help->System Info / PHP Information). Look for something like:
cURL support	enabled
cURL Information	libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

I'm not too worried about the 2nd item, as that throws a different error.. but worth checking.

Let us know what you find!
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #5999 by avanzed
Ok. The port was the problem. Works fine now. Thank you
The topic has been locked.
Support Specialist
13 years 4 months ago #6001 by alzander
That's awesome to hear. Glad we helped fix you up, and now we know what the problem is if we ever see it again. Thanks for letting us know you got it going!

If you have any other questions or issues, you know where to find us.
The topic has been locked.
Active Subscriptions:

None
Hi guys, I moved my website to a newest server, now I'm having issues and I guess is the port, where this is suppose to go?

* These 4 addresses can be accessed over SSL (port 443)

In the incoming ports or outgoing ports in the server firewall?

This is what I have in cUrl:

cURL support enabled
cURL Information 7.21.0
Age 3
Features
AsynchDNS No
Debug No
GSS-Negotiate No
IDN Yes
IPv6 Yes
Largefile Yes
NTLM Yes
SPNEGO No
SSL Yes
SSPI No
krb4 No
libz Yes
CharConv No
Protocols dict, file, ftp, ftps, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host x86_64-unknown-linux-gnu
SSL Version OpenSSL/0.9.8b
ZLib Version 1.2.3

Thanks for any help
The topic has been locked.
Support Specialist
13 years 1 month ago #7901 by alzander
Your cURL setup seems correct. The ports you'd want to open are the outgoing ports, since you'll be connecting to those addresses. Facebook does not need to initiate communication back (incoming) to you over SSL, so you don't need a certificate and shouldn't need those ports open.

Please let us know if this helps. Obviously, feel free to try opening the incoming port as well (generally, this is open anyways so if someone mis-types https to your site, it will still go 'somewhere').

Thanks!
The topic has been locked.
Active Subscriptions:

None
Hi,,,,,, Y have a this problem...

in my administrator,,,y acces to JFBConnect and in the overview,,,the joomla getme a error,,,,
the error is this,,

Facebook API Error: name lookup timed out
Facebook API Error: name lookup timed out


mi error is equal, for the user "advanced" but i dont know, how see status of my curl,,

My server respond this when i write nslookup api.facebook.com

[~]# nslookup api.facebook.com
Server: 67.199.146.254
Address: 67.199.146.254#53

Non-authoritative answer:
Name: api.facebook.com
Address: 66.220.149.29


PLEASE HELP MEE!

tansk
The topic has been locked.