Currently, I am doing a project on laravel5.
I use socialize for Facebook authentication,But I got cURL error Mentioned below.
RequestException in CurlFactory.php line 162:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
I have searched on internet and done following changes but didn't helped
- downloaded cart.pem file
- set path "curl.cainfo ="C:\xampp\cacert.pem"
- also uncomment "extension=php_curl.dll"
My code of in controller
public function fb()
{
return Socialize::with('facebook')->redirect();
}
public function cb() //callback for facebook
{
$user = Socialize::with('facebook')->user();
var_dump($user);
}