properly check that facebook is loaded