i am getting same ssl error for all version of php-sdk i have increased timeout value but strill same problem but when i tried same sample code on different server it worki
I had the same issue two weeks ago with two computers running on Archlinux with curl 7.24.
Curl use SSL version 3 by default but it looks like on my computers the curl to https://graph.facebook.com ended up in a timeout whereas it worked when I specifically asked curl to use SSL version 3. So here how I solved the issue :
In the Facebook PHP SDK, in base_facebook.php, replace :
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.1',
);
By :
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.1',
CURLOPT_SSLVERSION => 3,
);