The question as to the existence of nontrivial compact or weakly compact multipliers between spaces of functions on groups has been investigated for several years. Until now, however, no general method which is applicable to a large class of function spaces seems to be knownIn this paper we prove that the existence of nontrivial compact multipliers between Banach function spaces on which a group acts is related to the existence of nonzero almost periodic functions.