Similar to the phrase "laugh it off", it's what you tell your friend when they're upset or frustrated.
Friend 1: "Man, I can't get over breaking up with her."Friend 2: "You'll be alright dude, just fap it off."