code: public T events_get(Integer userId, Collection<Long> eventIds, Long startTime, Long endTime)
      throws FacebookException, IOException {
      ArrayList<Pair<String, CharSequence>> params =
        new ArrayList<Pair<String, CharSequence>>(FacebookMethod.EVENTS_GET.numParams());
  
      boolean hasUserId = null != userId && 0 != userId;
      boolean hasEventIds = null != eventIds && !eventIds.isEmpty();
      boolean hasStart = null != startTime && 0 != startTime;
      boolean hasEnd = null != endTime && 0 != endTime;
  
      if (hasUserId)
        params.add(new Pair<String, CharSequence>("uid", Integer.toString(userId)));
      if (hasEventIds)
        params.add(new Pair<String, CharSequence>("eids", delimit(eventIds)));
      if (hasStart)
        params.add(new Pair<String, CharSequence>("start_time", startTime.toString()));
      if (hasEnd)
        params.add(new Pair<String, CharSequence>("end_time", endTime.toString()));
      return this.callMethod(FacebookMethod.EVENTS_GET, params);
    }
docs: Returns all visible events according to the filters specified. This may be used to find all events of a user, or to query specific eids.
  @param eventIds filter by these event ID's (optional)
  @param userId filter by this user only (optional)
  @param startTime UTC lower bound (optional)
  @param endTime UTC upper bound (optional)
  @return T of events