Facebook established data sharing agreements with phone and device makers including Apple, Amazon, Microsoft, and Samsung that granted the companies access to substantial amounts of data on users and their friends without their explicit consent, according to a report by the New York Times.