Facebook will support Canadian AI research in addition to setting up a lab in Montreal.