Facebook is on trial in New Mexico over privacy concerns that emerged during the 2016 election when a political consulting firm bought user data harvested from millions of profiles to generate targeted ads.