DARPA was working on Project LifeLog starting in 2003, was to be "an ontology-based (sub)system that captures, stores, and makes accessible the flow of one person's experience in and interactions with the world in order to support a broad spectrum of associates/assistants and other system capabilities". The objective of the LifeLog concept was "to be able to trace the 'threads' of an individual's life in terms of events, states, and relationships", and it has the ability to "take in all of a subject's experience, from phone numbers dialed and e-mail messages viewed to every breath taken, step made and place gone".
The program, at least officially and publicly, was cancelled on February 4th, 2004, the exact same day that Facebook was founded.
https://en.m.wikipedia.org/wiki/DARPA_LifeLog
https://en.m.wikipedia.org/wiki/Facebook
You can call it a coincidence if you want, I just tend to be very skeptical of "coincidences" where massive, powerful, unaccountable, immoral, unethical institutions like the US intelligence community get exactly what they want at the expense of our civil liberties.