Usually said of someone who puts themselves down (similar to false modesty) in the hope that others will contradict them, and in the process, compliment them.
Sam: I'm no good at drawing!
Judy: Nonsense! You're an excellent artist!
Bob: Aw, he was just fishing for compliments.