Social media users are finding themselves on the wrong side of the law.