Can Facebook and Twitter ban the president?

Facebook and Twitter have suspended President Trump’s accounts, and some people are wondering if that violates his freedom of speech.