proper detection of the presence of a valid facebook app id