Meta Platforms secured a temporary injunction against the promotion of a tell-all memoir by a former director.