/**
* Get a Logout URL suitable for use with redirects.
*
* @param string $accessToken Access token for current user
* @param string $next Url to go to after a successful logout
* @return String The URL for the logout flow
*/
public function getLogoutUrl($accessToken, $next = '')
{
$params = array('access_token' => $accessToken, 'next' => $next ? $next : BaiduUtils::getCurrentUrl());
return self::$BD_OAUTH2_ENDPOINTS['logout'] . '?' . http_build_query($params, '', '&');
}