# File lib/omniauth/strategies/oauth2/vkontakte.rb, line 37
      def user_data
        # http://vkontakte.ru/developers.php?o=-17680044&p=Description+of+Fields+of+the+fields+Parameter
        @fields ||= ['uid', 'first_name', 'last_name', 'nickname', 'domain', 'sex', 'bdate', 'city', 'country', 'timezone', 'photo', 'photo_big']

        # http://vkontakte.ru/developers.php?o=-1&p=getProfiles
        response = @access_token.get('https://api.vkontakte.ru/method/getProfiles',
          :params => {:uid => @access_token['user_id'], :fields => @fields.join(',')}, :parse => :json)
        @data ||= response.parsed['response'][0]

        # we need these 2 additional requests since vkontakte returns only ids of the City and Country
        # http://vkontakte.ru/developers.php?o=-17680044&p=getCities
        response = @access_token.get('https://api.vkontakte.ru/method/getCities',
          :params => {:cids => @data['city']}, :parse => :json)
        cities = response.parsed['response']
        @city ||= cities.first['name'] if cities && cities.first

        # http://vkontakte.ru/developers.php?o=-17680044&p=getCountries
        response = @access_token.get('https://api.vkontakte.ru/method/getCountries',
          :params => {:cids => @data['country']}, :parse => :json)
        countries = response.parsed['response']
        @country ||= countries.first['name'] if countries && countries.first
      end