站內搜尋

Monday, August 15, 2011

[facebook][好文] Facebook API on PHP 錯誤訊息 - certificate verify failed

錯誤處理


Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown inC:\AppServ\www\facebook\facebook-php-sdk\src\facebook.php on line 614

在$opts[CURLOPT_URL] = $url;上面加入下列兩行


$opts[CURLOPT_SSL_VERIFYPEER] = false;
$opts[CURLOPT_SSL_VERIFYHOST] = 2;


http://clonn.blogspot.com/2011/03/facebook-php-api-certificate-verify.html

No comments:

Post a Comment