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);
    }