move the opted out check outside the facebook module