Facebook earlier used data such as what users earn, qualifications and where they shop to target ads.