Social media companies and other firms doing business online generate huge amounts of data from their users and customers. Now, researchers are struggling with the ethical dilemma of whether that information should be private, the New York Times said.