When the phone gets hot, that’s most likely due to some app “running wild” i.e. making the soc do overtime. Facebook, especially the original app is a likely source for that kind of behaviour.
You could try to use another app for facebook for a start.
To make the phone cool down, restarting is a good idea, to stop any process running in the background.
You might take a look here: