Facebook has agreed to buy Oculus for $2 billion, betting that its virtual reality may be a new way for people to communicate, learn or be entertained.

Facebook Inc. said Tuesday that the deal includes $400 million in cash and 23.1 million shares worth about $1.6 billion. Oculus employees are also eligible for an additional $300 million if the company […]