properly check that facebook is loaded

@calvinfo