What exactly happens when you click "I Agree" on Facebook?

The social media giant Facebook has been in controversy from past few days. The UK data firm Cambridge Analytica had accused Facebook of leaking it users private information and when a user clicks "I Agree" on Facebook, he actually grants Facebook to