Facebook Connect: problem including facebook class??

Posted by Garrett on Stack Overflow See other posts from Stack Overflow or by Garrett
Published on 2010-06-16T02:40:33Z Indexed on 2010/06/16 2:42 UTC
Read the original article Hit count: 525

Filed under:
|
Debug Error: /facebook-php-sdk/src/facebook.php line 511 - 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

i really can't understand why this is happening... but here is the line (in the facebook class i downloaded):

  protected function makeRequest($url, $params, $ch=null) {
    if (!$ch) {
      $ch = curl_init();
    }

    $opts = self::$CURL_OPTS;
    $opts[CURLOPT_POSTFIELDS] = $params;
    $opts[CURLOPT_URL] = $url;
    curl_setopt_array($ch, $opts);
    $result = curl_exec($ch);
    if ($result === false) {
      $e = new FacebookApiException(array( /////////////////// HERE
        'error_code' => curl_errno($ch),
        'error'      => array(
          'message' => curl_error($ch),
          'type'    => 'CurlException',
        ),
      ));
      curl_close($ch);
      throw $e;
    }
    curl_close($ch);
    return $result;
  }

any ideas? thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook-connect