It also bought virtual-reality headset maker Oculus.
Oculus was an early-stage startup when Facebook acquired it in March 2014 for $2 billion.