A social media post from LeBron James on Sunday attracted criticism and prompted an apology from the Lakers star.