We wondered who/whom the book was about.
This sentence contains two clauses: we wondered and who/whom the book was about.
Again, we are interested in the second clause because it contains the who/whom.
The book was about him. Therefore, whom is correct.