I am a newbie in Facebook app development. I chose the PHP SDK since I am comfortable with PHP. After spending some time, I'm still unable to start on the actual app.
<?php
require_once 'facebook.php';
$facebook = new Facebook(
array(
'appId' => 'XXXXXXXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx',
)
);
$user_id = $facebook->getUser();
var_dump($user_id) ;
$userInfo = $facebook->api('/' + $user_id);
echo ' Welcome ' . $userInfo['name'] ;
?>
The above code should simply print the user's name. But its giving the error:
Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: C:\wamp\www\fb/fb_ca_chain_bundle.crt CApath: none thrown in C:\wamp\www\fb\base_facebook.php on line 853
What am I doing wrong here?