× Joomla Facebook Connect support forum

Topic-icon Cannot connect etc.

Active Subscriptions:

None
14 years 4 months ago #18112 by tylrum
Cannot connect etc. was created by tylrum
I just purchased and installed the component. I get various errors, it is very strange firstly it says:
Warning: fsockopen() [function.fsockopen]: unable to connect to www.sourcecoast.com:80 (No route to host) in /administrator/components/com_jfbconnect/assets/sourcecoast.php on line 47

Secondly, it does not show config info, but the following error:
Application Name:
Site URL:
Site Domain(s):
WARNING: POSSIBLE MISCONFIGURATION
We suggest updating your Site URL to: weiswise.com/bb/
You can do this by visiting: Facebook Developers
Select your application -> Edit Settings.
You should configure the Site URL and App Domain.

I have set the appropriate APP Id and secret key in administration, even tried to reinstall etc.

File Attachment:


Furthermore, it was strange, at one point it connected and I got the FB dialog and allow log in which I did, then on return to site i was redirected to index.php#_=_
...when I go back to the page where the login module is then it says: We were unable to retrieve your Facebook account information. Please try again

Please help.
The topic has been locked.
Support Specialist
14 years 4 months ago #18117 by alzander
Replied by alzander on topic Cannot connect etc.
Tyler,
In the future, please post from the account you subscribed from. You can also just post to this thread with that account, and we'll add the subscription to the account above so you can post from either.

As for your issue, your server seems to have any outgoing connections blocked. You'll need to allow cURL (an extension of PHP) to open up external connections, which are required for just about everything related to Facebook and are also used on the JFBConnect Overview page for the version checks.

If you need more information, just let us know, and we can help. Again though, please post from the account you subscribed from.

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

None
14 years 4 months ago #18121 by kaswei
Replied by kaswei on topic Cannot connect etc.
Sorry about that, used my test account.
Php info gives me the following in the backend:
cURL support enabled
cURL Information libcurl/7.21.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
The topic has been locked.
Support Specialist
14 years 4 months ago #18127 by alzander
Replied by alzander on topic Cannot connect etc.
Thanks for using your subscribed account.

I just looked at the error messages again, and it's not a cURL specific error. It seems like your server just can't find external sites (Facebook.com, Sourcecoast.com). That could either be because the DNS is misconfigured on there (translating SourceCoast to an IP address) or there's a firewall that's actively preventing those types of connections.

Do you know of anything on your server that would stop outgoing connections? If you have SSH (Command Line) access to your site, can you run the following command:
nslookup facebook.com
ping sourcecoast.com
The first should return information (like IP address) from Facebook. The 2nd should try to make a quick connection to our site. Neither should throw errors. If so, then you may need to contact your hosting provider to see what could be stopping outgoing connections.

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

None
14 years 4 months ago #18143 by kaswei
Replied by kaswei on topic Cannot connect etc.
The fsockopen issue is gone now, I have had the hosts remove restrictions in the firewall, now i only seem to be having issues with the facebook api, i have attached screenshots of the input i have put in, and the errors im getting.

is it a problem that its on a testing domain which is not in the rootfolder of the site?

File Attachment:
File Attachment:
File Attachment:
The topic has been locked.
Support Specialist
14 years 4 months ago #18163 by alzander
Replied by alzander on topic Cannot connect etc.
The "Couldn't Connect To Host" message is still (likely) a server related issue. The following is a list of URLs that your server will need to be able to access:
api.facebook.com/
api-video.facebook.com/
api-read.facebook.com/
graph.facebook.com/
www.facebook.com/

I'm not sure if you manually fixed just facebook.com and sourcecoast.com. Either way though, you'll need to determine why the server can't connect to one, or all, of those URLs.

Hope that helps narrow things down, but if not, let us know.

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

None
14 years 4 months ago #18188 by kaswei
Replied by kaswei on topic Cannot connect etc.
That fixed the error. Works great - thx for great support.

BR
Kasper
The topic has been locked.
Support Specialist
14 years 4 months ago #18194 by alzander
Replied by alzander on topic Cannot connect etc.
Kasper,
Fantastic. Was going to run out of ideas fast if that didn't :) Should you need anything else, just let us know.

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

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

None
14 years 3 months ago #19041 by kaswei
Replied by kaswei on topic Cannot connect etc.
Ive come across an issue when I log out of Joomla, then i get the following error:

Warning: fsockopen() [function.fsockopen]: unable to connect to profile.ak.fbcdn.net:80 (No route to host) in /home/weiswise/public_html/bb/components/com_jfbconnect/libraries/profile.php on line 283

Is it because there is some access that needs to be opened up here as well?
The topic has been locked.
Support Specialist
14 years 3 months ago #19060 by alzander
Replied by alzander on topic Cannot connect etc.
Kasper,
If you have the profile integration plugins enabled, you'll need to be able to access that profile.ak.fbcdn.net URL mentioned above. This is where the user's avatar is fetched from. However, I'm not sure why you'd be seeing that error when logging out. Do you have "Automatically Login Facebook Users" enabled in JFBConnect? All i can think is that the auto-login functionality is trying to kick in and re-log the user in after logging out.

Do you see this error when normally logging in through Facebook as well, or just on logout (which would be very strange).

Thanks,
Alex
The topic has been locked.