The Facebook (Nasdaq: FB) stock price closed at an all-time high of $104.88 on Oct. 29, at a time when businesses in a variety of sectors are warning of slowing U.S. economic growth…

Many large companies have warned investors to temper their expectations for the end of 2015, as well as the start of 2016, as sales decline or remain stagnant.

Money Morning Chief Investment Strategist Keith Fitz-Gerald stated that as of earlier this week, 41.5% of companies reporting earnings have beaten revenue estimates for Q3. That's down from more than 70% in late 2009.

Companies from Twitter Inc. (NYSE: TWTR) to J.C. Penney Co. Inc. (NYSE: JCP) have laid off as much as 9% of their workforces in October in an attempt to control costs. According to The Wall Street Journal, Fastenal Co.'s (Nasdaq: FAST) Chief Financial Officer Daniel Florness told investors earlier this month that the industrial environment's in a recession.

FB stock is not something that first comes to mind to own during a recession…

Many investors have a hard time placing faith in a company that doesn't sell a physical product (this will change with Oculus Rift), and some investors find it challenging to wrap their heads around how Facebook makes money.

The theory is that in a slowing economy, advertisers spend less – but that's not exactly the case, as these numbers show…

How Facebook Stock Can Survive a 2016 Recession

First, it's important to understand how Facebook makes money.

You see, Facebook makes money from companies paying Facebook to place advertisements on its site.

A key to that is reaching active users – and having lots of active users to target.

In July 2015, Fortune reported that Facebook had more than 1.31 billion mobile monthly users (MAUs) and 844 million mobile daily users. Mobile advertising for Facebook has seen a meteoric rise since Q3 2012.

Even in a recession, people are likely to stay active on Facebook – it's a free service.

Chief Executive Officer Mark Zuckerberg stated in Facebook's Q2 2014 earnings that the average U.S. consumer spends at least 40 minutes on Facebook per day. Worldwide, Facebook reported that people spend an average of 20 minutes on Facebook per day.

One of Facebook's advantages over other social media platforms was its early adoption to mobile technology through interactive ads and videos.

Over the next few years, incorporating mobile ads and mobile technology will be a crucial component of any advertising budget.

Digital marketing insight provider CMO projected:

Mobile devices will account for 30% of global retail e-commerce by 2018, up from 15% in 2013

59% of U.S. smartphone owners used their phone to research an item before purchasing

84% of U.S. smartphone shoppers used their phones for assistance while shopping in a physical store

Facebook is slowly rolling out a "Buy Now" option that will let Facebook users purchase a product without ever leaving the site.

Advertisers for retail companies will solve the issue of getting people to stores and malls when gas is expensive, unemployment is high, and wages are stagnant.

Now the question is, will advertisers continue to spend when a recession hits? This study gives some insight…