× Joomla Facebook Connect support forum

Topic-icon Facebook API Error: SSL certificate problem

Active Subscriptions:

None
12 years 6 months ago #15043 by raccha
Fabulous, thanks for doing that so quickly Alex, much appreciated! All is looking good.

Best wishes,
rachel
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #15047 by gedmonstone
Good morning Alex - OK, so I managed to fix my problem, here is how I got there.

1. Modified base_facebook.php line 810

$opts = self::$CURL_OPTS;
// SourceCoast - JFBConnect - Use setting to always include the Cert instead of failing and retrying every time.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$jfbcConfigModel = new JFBConnectModelConfig();
if ($jfbcConfigModel->getSetting('facebook_curl_disable_ssl', true))
$opts[CURLOPT_SSL_VERIFYPEER] = false;

2. Modified .htaccess

to include the following line of code

AddType x-mapp-php5 .php

Everything working perfectly now

Thanks again

Gary
The topic has been locked.
Support Specialist
12 years 6 months ago #15064 by alzander
Gary,
Thanks for letting me know what works. The curl_setopt you're doing shouldn't be necessary as we do that 2 lines below (in a different way), although you'd need to make sure the "Disable SSL Certificate Validation" setting is enabled in JFBConnect for that line to work.

As for the mod to .htaccess.. I'm a bit clueless on that one. What does that do, and how does it affect SSL? Just curious :)

Thanks again,
Alex
The topic has been locked.