Pronouns in the objective case may function as an indirect object, a direct object, or an object of a preposition.
John invited my brother and me to the tennis finals.
John gave us twenty tickets to the tennis finals.
We received twenty tickets to the tennis finals from him.