fixed the facebook api trying to load on every page