I need to update facebook status using the status.set method of the facebook API. I have already created an application and am able to login using the Facebook API’s sample code. I have downloaded the Facebook PHP SDK 2.1.2 from Facebook. I also use the facebook.php and fb_ca_chain_bundle.crt file in my working directory. But the problem is when I go to update my status using below code, then a long error shows.
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed error code:60
My code is below:
require './facebook.php';
$facebook = new Facebook(array(
'appId' => '...',
'secret' => '...',
'cookie' => true, // enable optional
cookie support ));
try{
$facebook->api(array(
'method' => 'status.set',
'status' => $_POST['hello'],
'uid' => '...'
));
}
catch(Exception $o){ print_r($o);}
i solve the problem.pls see the link:
Hope it can help u all