How do you stop your dog from licking the fence?

Instead, you lick the dog. the dog will stop licking the fence, and start licking you. simple.