How can I open Facebook and Instagram app by tapping on a button in swift? Some apps redirect to the Facebook app and open a specific page. How can I do the sam
swift
In swift 3;
First you should add this on your Info.plist
Than you can use this code;
let instagramUrl = URL(string: "instagram://app") UIApplication.shared.canOpenURL(instagramUrl!) UIApplication.shared.open(instagramUrl!, options: [:], completionHandler: nil)