Topic-icon SOLVED | Fb App do not connect

Active Subscriptions:

None
10 years 11 months ago - 10 years 11 months ago #53757 by RobCom
Errore API Facebook:SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
Could not load the configuration of the Application Facebook . Check your App ID and Secret Key

If i perform the login a page appear with this message :
SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

I'Ve followed your instruction to set the facebbok app and I've disable the SSl validation in configuration JBC connect cause my website does not using it .
What's wrong?
Last edit: 10 years 11 months ago by RobCom.
The topic has been locked.
Support Specialist
10 years 11 months ago #53759 by alzander
You don't need an SSL certificate installed on your site for most JFBConnect functions. However, your server does need to be able to make outgoing SSL requests to each of the social networks servers. All social networks require that data is retrieved over SSL for the security and privacy of user information. It sounds like your server is not capable of making those outgoing connections.

I'd suggest contacting your hosting provider or technical support to confirm that outgoing SSL connections are possible. You can also go to the System Information -> PHP Information area of Joomla and check the 'curl' section. It should look like below with SSL set to Yes:
File Attachment:

If that seems correct, please post the image of your curl section so we can understand what may be configured wrong.

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

None
10 years 11 months ago #53760 by RobCom

alzander wrote: You don't need an SSL certificate installed on your site for most JFBConnect functions. However, your server does need to be able to make outgoing SSL requests to each of the social networks servers. All social networks require that data is retrieved over SSL for the security and privacy of user information. It sounds like your server is not capable of making those outgoing connections.

I'd suggest contacting your hosting provider or technical support to confirm that outgoing SSL connections are possible. You can also go to the System Information -> PHP Information area of Joomla and check the 'curl' section. It should look like below with SSL set to Yes:


If that seems correct, please post the image of your curl section so we can understand what may be configured wrong.

Thanks,
Alex



Hi Alex
Seems the parameter of my server are the same of your suggestion
The topic has been locked.
Support Specialist
10 years 11 months ago #53761 by alzander
Thanks for sending that. All does look good in that section. The issue is still likely a server configuration issue though. Would it be possible to Private Message me admin credentials so we can look at all the settings on your site and investigate further? You can PM me by clicking the mail icon under my name to the left.

Thanks,
Alex
The topic has been locked.
Support Specialist
10 years 11 months ago #53762 by alzander
Thanks for the credentials. I just tested on your site and I was able to authenticate with Facebook and my account was automatically created. Additionally, using Autotune, I was able to click "Refresh" and grab the latest configuration data. It seems like the data had been already fetched before I went to that page as well.

I don't know what changed, but it seems to be working for me. Can you test again and let me know exactly when you're seeing error messages and what those messages are?

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

None
10 years 11 months ago #53771 by RobCom

alzander wrote: Thanks for the credentials. I just tested on your site and I was able to authenticate with Facebook and my account was automatically created. Additionally, using Autotune, I was able to click "Refresh" and grab the latest configuration data. It seems like the data had been already fetched before I went to that page as well.

I don't know what changed, but it seems to be working for me. Can you test again and let me know exactly when you're seeing error messages and what those messages are?

Thanks,
Alex


Hi Alex since yesterday everything works fine, then ,again,this morning I've find this message while I was running Autotune :

Error API Facebook:SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

Impossibile caricare la configurazione dell'Applicazione Facebook. Verifica la tua App ID e la Secret Key
Impossible to load facebook application configuration .Verify your App ID and Secret Key

That's happening with Twitter too :
Error message when login :
SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
While for Google login show no problem at all.

I'm sending like attachments the screen error:
The topic has been locked.
Support Specialist
10 years 11 months ago #53777 by alzander
That's an excellent indication that there's a server configuration issue. Nothing has changed on your site or within JFBConnect over the last day. There isn't code in our extension that sometimes works and other times doesn't.

If you do a Google search for "SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054 ", you'll see many different reports on various tech support areas and the resolution always comes down to some lower level issue on the server.

The best I've found with suggestions to diagnose is from this post . I'd recommend running the following commands from your server command line to test curl's capabilities.
curl -v https://www.sourcecoast.com
curl -v https://graph.facebook.com/
curl -v curl -v https://api.twitter.com/1.1/
From all of those, you should get an HTML response of the page that was requested. If you see an error, especially like the SSL read error above, it means there's a server level issue.

Please note that curl from the command line is different from curl within PHP. If you get an error, it's likely the same problem as on your site. If you get no error, it could mean that PHP is mis-configured to use curl.

I hope that helps get you started,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 11 months ago - 10 years 11 months ago #53797 by RobCom

alzander wrote: That's an excellent indication that there's a server configuration issue. Nothing has changed on your site or within JFBConnect over the last day. There isn't code in our extension that sometimes works and other times doesn't.

If you do a Google search for "SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054 ", you'll see many different reports on various tech support areas and the resolution always comes down to some lower level issue on the server.

The best I've found with suggestions to diagnose is from this post . I'd recommend running the following commands from your server command line to test curl's capabilities.

curl -v https://www.sourcecoast.com
curl -v https://graph.facebook.com/
curl -v curl -v https://api.twitter.com/1.1/
From all of those, you should get an HTML response of the page that was requested. If you see an error, especially like the SSL read error above, it means there's a server level issue.

Please note that curl from the command line is different from curl within PHP. If you get an error, it's likely the same problem as on your site. If you get no error, it could mean that PHP is mis-configured to use curl.

I hope that helps get you started,
Alex


Hi Alex,
finally I've find the solution.
Like you have correctly explained the issue was at server level : it was a firewall filtering outgoing connection to facebook ; precisely in a range of time between 9am to 6 pm
This is the reason why in this period the connection failed !
When you had checked the site it's was working fine cause you were outside that firewall range time :)
Thank you for precious suggestions that allowed me to explain to my host which kind of issues i was facing , so they could solve for me.
Now everything works charming
I put this line of explanation just in case anybody else should face a similar ( very rare and specific ) issue.
RobCom
Last edit: 10 years 11 months ago by RobCom.
The topic has been locked.
Support Specialist
10 years 11 months ago #53807 by alzander
RobCom,
Thanks so much for posting back what the issue was. I've heard of plenty of firewall issues, but not ones that had time ranges specific to Facebook. Very interesting. I'm glad we could help narrow things down for you. I was very confident it wasn't in JFBConnect, but we're here to try and help with all issues.

Should you run into anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciate:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Thanks,
Alex
The topic has been locked.