public function createProvider()
    {
        $graphApiVersion = 'v2.12';

        if(!empty($this->providerInfos->config['graphApiVersion']))
        {
            $graphApiVersion = $this->providerInfos->config['graphApiVersion'];
        }

        $config = [
            'clientId' => $this->providerInfos->clientId,
            'clientSecret' => $this->providerInfos->clientSecret,
            'redirectUri' => $this->getRedirectUri(),
            'graphApiVersion' => $graphApiVersion
        ];

        return new \League\OAuth2\Client\Provider\Facebook($config);
    }
public function createProvider()
    {
        $graphApiVersion = 'v2.12';

        if(!empty($this->providerInfos->config['graphApiVersion']))
        {
            $graphApiVersion = $this->providerInfos->config['graphApiVersion'];
        }

        $config = [
            'clientId' => $this->providerInfos->clientId,
            'clientSecret' => $this->providerInfos->clientSecret,
            'redirectUri' => $this->getRedirectUri(),
            'graphApiVersion' => $graphApiVersion
        ];

        return new \League\OAuth2\Client\Provider\Facebook($config);
    }
public function createProvider ( ) { $ graphApiVersion = 'v2.12' ; if ( ! empty ( $ this -> providerInfos -> config [ 'graphApiVersion' ] ) ) { $ graphApiVersion = $ this -> providerInfos -> config [ 'graphApiVersion' ] ; } $ config = [ 'clientId' => $ this -> providerInfos -> clientId , 'clientSecret' => $ this -> providerInfos -> clientSecret , 'redirectUri' => $ this -> getRedirectUri ( ) , 'graphApiVersion' => $ graphApiVersion ] ; return new \ League \ OAuth2 \ Client \ Provider \ Facebook ( $ config ) ; }
Create Facebook Provider

@return League\OAuth2\Client\Provider\Facebook
Create Facebook Provider