/**
  * Handle a Facebook signin. Try set up user.
  *
  * @param   sfRequest $request
  * @return  void
  */
 public function executeSignin($request)
 {
     $user = $this->getUser();
     try {
         sfFacebookGraphUserProfile::getCurrentFacebookUser($user);
     } catch (Exception $e) {
         if (sfConfig::get('sf_logging_enabled')) {
             sfContext::getInstance()->getLogger()->info('{sfFacebookGraph} Error logging in ' . $e->getMessage());
         }
         $this->_redirectError($request, $user);
     }
     $this->_redirectSuccess($request, $user);
 }
 /**
  * Executes the filter chain.
  *
  * @param sfFilterChain $filterChain
  */
 public function execute($filterChain)
 {
     $facebookUid = sfFacebookGraph::getCurrentUser();
     $user = $this->context->getUser();
     // check for logged in user
     if ($facebookUid && !$user->isFacebookConnected()) {
         sfFacebookGraphUserProfile::getCurrentFacebookUser($user);
     }
     // check for logged out
     if ($user->isFacebookAuthenticated() && !$user->isFacebookConnected()) {
         $user->signOut();
     }
     $filterChain->execute();
 }