src/FacebookLogin.php
public function getLoginUrl(string $redirectUrl, array $permissions = ['public_profile'], ?string $stateParam = null): string
	{
		// Create redirect URL with econea return URL
		$helper = $this->facebook->getRedirectLoginHelper();

		// Set our own state param
		if (isset($stateParam)) {
			$helper->getPersistentDataHandler()->set('state', $stateParam);
		}

		$url = $helper->getLoginUrl($redirectUrl, $permissions);

		return $url;
	}
public function getLoginUrl(string $redirectUrl, array $permissions = ['public_profile'], ?string $stateParam = null): string
	{
		// Create redirect URL with econea return URL
		$helper = $this->facebook->getRedirectLoginHelper();

		// Set our own state param
		if (isset($stateParam)) {
			$helper->getPersistentDataHandler()->set('state', $stateParam);
		}

		$url = $helper->getLoginUrl($redirectUrl, $permissions);

		return $url;
	}
public function getLoginUrl ( string $ redirectUrl , array $ permissions = [ 'public_profile' ] , ? string $ stateParam = null ) : string { // Create redirect URL with econea return URL $ helper = $ this -> facebook -> getRedirectLoginHelper ( ) ; // Set our own state param if ( isset ( $ stateParam ) ) { $ helper -> getPersistentDataHandler ( ) -> set ( 'state' , $ stateParam ) ; } $ url = $ helper -> getLoginUrl ( $ redirectUrl , $ permissions ) ; return $ url ; }
Creates Response that redirects person to FB for authorization and back

@param string[] $permissions
Creates Response that redirects person to FB for authorization and back