Added a check for if the Facebook app is installed or not.