Ejemplo n.º 1
0
 /**
  * Get facebook logout url
  * Requires a valid access_token
  *
  * @param string $redirectUrl Url where facebook redirects after logout.
  *                            Router::url() compatible
  * @return string Logout URL
  */
 public function getLogoutUrl($redirectUrl = null)
 {
     $params = array();
     if ($redirectUrl) {
         $params['next'] = Router::url($redirectUrl, true);
     }
     return $this->FacebookApi->getLogoutUrl($params);
 }