properly check that facebook is loaded
Merge pull request #182 from segmentio/fix/facebook

properly check that facebook is loaded