Facebook advances in artificial intelligence to compete with Google and Amazon.