I\'m getting started with the facebook API. I downloaded the example code from facebook, configured with my appID and secret keys.
Set the option in CURL to point to your certificate file
This option will tell CURL that your fb_ca_chain_bundle.crt
file is in the same folder as your script.
Facebook::$CURL_OPTS[CURLOPT_CAINFO] = getcwd().'/fb_ca_chain_bundle.crt';
In base_facebook.php line 844 curl_exec fails and the error is generated. Then the script sets:
curl_setopt($ch, CURLOPT_CAINFO,
dirname(__FILE__) . '/fb_ca_chain_bundle.crt');
and tries again.
The Second time all is well, there is no problem it just makes a mess of your log
DO NOT use
Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false;
Or a man-in-middle will be able to intercept your call!