eddy1992
1173
17
Laravel

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Posted 3 years ago by eddy1992

I am using 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)

My controller :

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Socialite;

class AccountController extends Controller
{
    public function facebook_redirect() 

    {
        return Socialite::with('facebook')->redirect();
    }

    public function facebook()
    {
         $user = Socialite::with('facebook')->user();
    }
}

please help Thank you :)

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.