× Joomla Facebook Connect support forum

Topic-icon Facebook API Error: SSL certificate problem

Active Subscriptions:

None
12 years 5 months ago #14890 by mbailey
I am having a problem with the Facebook API. It seems to show signs that it is working sometimes ... and then all of the sudden not work.

Sometimes when I load the overview page, all signs show normal.

File Attachment:


However, other times, it will give me an SSL error. Or if I load the overview page it will show that it is connected, then if I load the configuration tab and then jump back to the overview tab (saving or without saving), I get the error again.

File Attachment:


We have an SSL certificate installed for the domain on the server, we do not currently force https:// for the domain. Our app lists our site as http:// on facebook. In the configuration I have Disable SSL Certificate Validation set to Yes.

Any ideas? I am receiving an error when trying to login using Facebook, I assume it is a result of this error.
The topic has been locked.
Support Specialist
12 years 5 months ago #14894 by alzander
That error has nothing to do with the SSL certificate installed for your site. It's actually an issue with your server recognizing Facebook's SSL certificate and validating it.

In the Configuration area of jFBConnect, click into the Facebook API tab and set the "Disable SSL Certificate Validation:" setting to "Yes". We recently changed how we try to work around this problem, and it's not working for all users. If that doesn't fix it for you, let us know, and I can give you a quick code change that will fix the issue.

Thanks, and sorry for the troubles,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #14905 by mbailey
Hi Alex,

Yes, I have set the "Disable SSL Certificate Validation:" setting to "Yes" and still receive the error. Let's give your code change a try to see if we can get around this issue.

We are running Joomla 1.5.23, JFBConnect 4.0.3, JomSocial 2.2.4, on Amazon Web Services' EC2 platform.
The topic has been locked.
Support Specialist
12 years 5 months ago #14906 by alzander
You'll need to modify the following file: /administrator/components/com_jfbconnect/assets/facebook-api/base_facebook.php

At line 813, you should see:
if ($jfbcConfigModel->getSetting('facebook_curl_disable_ssl', false))
        curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/fb_ca_chain_bundle.crt');

Remove the 2nd line and replace it so it looks like below:
if ($jfbcConfigModel->getSetting('facebook_curl_disable_ssl', false))
        $opts[CURLOPT_SSL_VERIFYPEER] = false;

That should fix you right up, but if not, just let us know. We'll get you going!
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #14910 by mbailey
Hi Alex,

Looking good! Thanks for the workaround.

--
Max.
The topic has been locked.
Support Specialist
12 years 5 months ago #14914 by alzander
Max,
Glad to hear that got you going! We'll likely be changing our SSL behavior on the next release as our new method doesn't seem perfect for everyone, unfortunately.

Should you run into anything else, just let us know. Finally, if you haven't already, 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 with your site,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #15009 by gedmonstone
Good morning - I have a similar problem on one of my sites, but not the other. It also seems to have just appeared, was working perfectly two days ago. I have tried the fix you recomended above, but to no avail. If I go in therough the admin side, I see the following error when I open JFBConnect

Facebook API Error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:func(144):reason(134)

Thanks for any help you can offer.

Gary
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #15012 by raccha
Thanks for the suggestion, as i am having the same issue.

I managed to follow these instructions, but for some reason the 'SAVE' button does not work. I keep clicking, but nothing happens...
The topic has been locked.
Support Specialist
12 years 5 months ago #15019 by alzander
Hmmm. We're unable to recreate this problem on any of our test sites, which isn't surprising, as this is likely very server specific. I'm surprised, and stumped, as to why the fix above wouldn't fix things for you (or what issues you might still be having).

Rachel,
The only time we've seen the Save button not work in the past is if you're using a different Admin template, sometimes the Javascript in them conflicts with some of ours. If this is the case, please try switching back to the Khepri admin template and try again. Let us know if that fixes things, and if so, what other admin template you were using.

Gary/Rachel, if you're still having issues, feel free to Private Message me credentials to your site, and I can look into things further.

Thanks,
Alex
The topic has been locked.
Support Specialist
12 years 5 months ago #15042 by alzander
Rachel,
Thanks for the PM with your site details. I got into the site and made the change mentioned above ( here ) and the issue looks to have gone away in the Overview page of JFBConnect.

Hopefully, that will fix everything, but obviously, please test and let us know!

Thanks,
Alex
The topic has been locked.