Altered to include all Facebook calls within if check to see if Facebook is enabled.