Generally speaking the only way an employer could force that is if it is specified in a contract and even then it would be limited to those employees for whom it is assumed it would be part of their regular duties (ie Amazon couldn’t just slip in a clause and force delivery drivers to post shit for them on social media).
They can make prohibitions about posting on social media to some degree, but they cannot compel you to post.