Facebook has agreed to make some major changes to its privacy practices in the wake of an investigation by the Canadian Privacy Commissioner.