This can be done by incorporating specific language regarding these duties and the ownership of social media accounts and contacts into offer letters, job descriptions, confidentiality agreements, separation agreements, and non-competition or non-solicitation agreements.
FORBES: Company Social Media Accounts -- Who Owns Those Twitter Followers?