Laws and regulations govern the use of social media by individuals, companies, and government agencies.