Fixed Facebook logic