The Information Commissioner’s Office (ICO) has fined Facebook £500,000 for serious breaches of data protection law.