The social networking site attempted to manipulate the emotions of almost 700,000 users without their knowledge.