to only know sb / sth slightly
have a nodding acquaintance with sb / sth
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition