The agreement between Facebook's Building 8 and the universities comes as the social media company seeks to find new revenue streams in virtual reality and artificial intelligence.