You have to go to the Social Menu in Call of Duty: Modern Warfare to play online with friends. Triangle is found in the top right of the screen and should be on PS4 or Y.
Haphazardly Gaming Domain
Join Now
gaming.haphazardly@gmail.com