Facebook, embattled in a scandal over the mishandling of user data, confirms that it also collected information from people beyond their social network use.