If you want to get any character's ending, you must go through 5 main interactions with them, and Barnaby's route is no different (although there are some special cases with fewer obligated interactions). Side interactions are optional but they may affect on the character's favorability toward you.