For both examples we would use ‘them’.
This is because the nouns are plural (books, parties) and them is a plural pronoun.
‘It’ would refer to a singular book or party.
E.g. I want that book, please give it to me.
I didn’t go to that party, I missed it.