Facebook has a setting that allows you to expire your session after a certain amount of time if you are not actively using Facebook. This feature was introduced to keep users from wasting money on data plans by sitting at their computers for hours at a time. This feature is designed to prevent users from staying logged into Facebook just to view their profiles.