Hi, jojen, and welcome to Psych Central!
I don't remember a book that said that, but it's certainly true. (I am a social psychologist.)
Friendship should be based on common interests and a liking for the other person. In other words, you enjoy being around the person.