When using a direct object pronoun with a compound verb, the last letter of the verb must agree with the direct object pronoun.
For example:
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.
For example:
Ho comprato delle scarpe nuove. Le vuoi vedere? / Vuoi vederle?
DIRECT OBJECT PRONOUNS WITH PARTICIPIO PASSATO
The participio passato following the direct object pronouns lo, la, li, le, must agree with the pronoun (-o, -a, -i, -e).
For example:
"Hai comprato il pane?" "Sì, l'ho comprato"
"Hai visto la zia?" "No, non l'ho vista"
"Hai incontrato gli studenti?" "Sì, li ho incontrati ieri"
"Hai cucinato le lasagne?" "Sì, le ho fatte per te"