diff --git a/Security/EntryPoint/FacebookAuthenticationEntryPoint.php b/Security/EntryPoint/FacebookAuthenticationEntryPoint.php index b250a77..3023c93 100644 --- a/Security/EntryPoint/FacebookAuthenticationEntryPoint.php +++ b/Security/EntryPoint/FacebookAuthenticationEntryPoint.php @@ -58,18 +58,23 @@ public function start(Request $request, AuthenticationException $authException = if ($this->options->get('server_url') && $this->options->get('app_url')) { $redirect_uri = str_replace($this->options->get('server_url'), $this->options->get('app_url'), $redirect_uri); } - + $loginUrl = $this->facebook->getLoginUrl( array( 'display' => $this->options->get('display', 'page'), 'scope' => implode(',', $this->permissions), 'redirect_uri' => $redirect_uri, )); - + if ($this->options->get('server_url') && $this->options->get('app_url')){ return new Response(''); } - + return new RedirectResponse($loginUrl); } + + public function getOptions() + { + return $this->options; + } }