Laravel socialite问题cURL错误60:无法使用fb和google获取本地颁发者证书

时间:2016-09-16 02:29:54

标签: php facebook-graph-api curl laravel-5.2 laravel-socialite

我正在尝试在wampserver上测试laravel socialite我在谷歌和脸书上试了但是它给了我错误:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

我按照Laravel Socialite testing on localhost, SSL certificate issue?

上的解决方案

1Laravel Socialite testing on localhost, SSL certificate issue?Laravel 5.2 Socialite Facebook Login cURL error 60但问题仍然存在。这是我的代码

 public function facebook()
    {
        return $this->socialite->with('facebook')->redirect();
    }

public function facebookCallback()
{
    $user = $this->socialite->with('facebook')->user();

   dd($user);

}
public function google()
{
    return $this->socialite->driver('google')->redirect();
}

public function googleCallback()
{
    $user = $this->socialite->driver('google')->user();


    dd($user);

}`

我的php.ini是:curl.cainfo ="D:/programs/wamp64/bin/php/cacert.pem.txt"我不知道我做错了什么。

0 个答案:

没有答案