When using a direct object pronoun with a passato prossimo or another compound verb, the last letter of the verb must agree with the direct object pronoun.
Examples:
Ho letto i libri → Li ho letti
Ho incontrato le amiche → Le ho incontrate
In case of a modal or phrasal verb (volere, potere, dovere, sapere, cominciare a, stare per, finire di) followed by an infinitive, the direct object pronoun can either be used before the verb or after the infinitive.
Example:
Ho comprato delle scarpe nuove. Le vuoi vedere? / Vuoi vederle?