When a cat rubs his face or body against a person or objects he is releasing pheromones, which means he refers to you or the object as his friend. This affectionate gesture is called bunting and is also used by cats as a greeting.