I'm not even sure what this is trying to say.
Duh...
The girl passed her exam because the boy wished her luck and really meant what he said. The boy failed because she didn't really wish that he'd pass, she just said it because it's customary politeness without any actual meaning.
And now that you know what that facebook post was trying to say does it make any more sense than before?