Topic-icon SCLogin

Active Subscriptions:

None
10 years 10 months ago #33613 by pvh
SCLogin was created by pvh
After installation of the new SClogin version 3, I get "error 6" on the FB login.
When I refresh the page once or twice, the requested page is shown.

Rgrds, Pieter
The topic has been locked.
Support Specialist
10 years 10 months ago #33629 by alzander
Replied by alzander on topic SCLogin
Pieter,
Can you let us know where we can see that happening? The SCLogin module hasn't changed how the Facebook login functionality works, so there really shouldn't be any change in the login behavior when you upgrade. To diagnose, or even understand the problem, we'll need to see what's happening on your site as we haven't heard of that issue before.

As for other things to check/let us know about:
* After you upgrade, clear your Joomla and browser cache, just to make sure some old setting isn't being used.
* Where are you seeing the "Error 6"? Is that on your page, in the login popup from Facebook, or somewhere else?

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

None
10 years 10 months ago #33638 by pvh
Replied by pvh on topic SCLogin
alzander,

I have cleared the cache etc. but I get the same error.
Go to www.legerdesheilsaw.nl
Login with Facebook and wait a while.
Than it goes into an error "name lookup timed out"

Pieter
The topic has been locked.
Support Specialist
10 years 10 months ago #33647 by alzander
Replied by alzander on topic SCLogin
The "Name lookup timeout" isn't an SCLogin issue. That means there's a server issue on your site while communicating with Facebook. JFBConnect needs to make many requests to different Facebook URLs when a user logs in to fetch their profile information, avatar, etc. I'd suggest contacting your hosting provider or technical support to make sure that the DNS servers on your host are configured correctly and can return an address for the following sites:
https://api.facebook.com/
https://api-read.facebook.com/
https://graph.facebook.com/
https://www.facebook.com/
The "Name lookup timeout" message means that your server isn't able to lookup the site address above and get the proper IP address that should be used to communicate with those sites/Facebook.

I hope that helps get you started, but if you need more help or run into any roadblocks, just let me know.

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

None
10 years 10 months ago #33690 by pvh
Replied by pvh on topic SCLogin
Thanks, alzander.
I will follow up your advise. It sounds obvious and I should have thought about myself ;-(

Pieter
The topic has been locked.
Support Specialist
10 years 10 months ago #33694 by alzander
Replied by alzander on topic SCLogin
Pieter,
No problem. We're here to provide solutions, and that answer wouldn't have been obvious to most.

Definitely let us know how it goes or if you need more assistance.

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

None
10 years 10 months ago - 10 years 10 months ago #33759 by pvh
Replied by pvh on topic SCLogin
I have checked with my provider and no DNS problems are known.
He suggested that the use of SEO might trigger the error.
I have tested with SEO switched off but no difference.
While in the backend I opened the Overview page of the JFBCONNECT component and the same error ( Facebook API Error: name lookup timed out
) came up. So it does not seem to be contained to the frontpage.
Is there a way of tracing the communication with FB so I can see what is happening in the conversation between the site and FB?

I also noticed this post "www.sourcecoast.com/forums/jfbconnect/jf...kup-timed-out#p14234" , which seems to be the same problem.
I think I need to change the subject of my post. Is this possible? Or tag to the other one?


Pieter
Last edit: 10 years 10 months ago by pvh.
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago #33760 by pvh
Replied by pvh on topic SCLogin
I read the below info from Drupal user having the same problem.

According to this guy (www.takwing.idv.hk/tech/fb_dev/phpsdk/learning_phpsdk_07.html), you might try replacing "api-read.facebook.com" with "api.facebook.com" in the library you downloaded from facebook

This solved the problem in Drupal. Mind you, this post was from 2010 ......

Pieter
The topic has been locked.
Support Specialist
10 years 10 months ago #33762 by alzander
Replied by alzander on topic SCLogin
The post you referenced from our site is from almost 2 years ago, so anything there is likely out of date (intermittent issues were reference, which I would hope Facebook corrected by now! :) )

To test from your server to see if the lookups are working, you can use the following command from the command line:
nslookup api-read.facebook.com
You can do try that command for each of the URLs I mentioned above. The output should be something like:
Server:		192.168.1.1
Address:	192.168.1.1#53

Non-authoritative answer:
api-read.facebook.com	canonical name = api.facebook.com.
api.facebook.com	canonical name = star.c10r.facebook.com.
Name:	star.c10r.facebook.com
Address: 173.252.100.27
If it shows an error or "Cannot find domain" message, that means there's an issue with your DNS server.

Finally, you can change api-read.facebook.com to api.facebook.com in our code as below. However, please note that you'll need to make that change any time you upgrade, which may cause you problems in the future. To make the edit, open /administrator/components/com_jfbconnect/assets/base-facebook.php and search for that domain. It's around line 183.

I hope that helps, but keep us posted on what you find.

Thanks,
Alex
The topic has been locked.