How would a person attach a magnet to a compact or other piece of makeup?
Remove the magnet from its backing and with a heated hot glue gun with a glue stick loaded into the gun attach a dot of hot glue to the middle of the magnet and then stick the hot glue onto the compact or cosmetic and hold it until it cools.