If I remember correctly, if you look at YouTube's app permissions it specifically says something about keeping the screen on. I don't believe Facebook does. So yea, it'll be an app vs app issue. All you can do in those cases is lengthen your general idle timeout or keep tapping the screen now and again.
It drives my wife nuts that the screen keeps turning off while watching MLB At Bat ;-)
Posted via Android Central App