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 swift5, use this
guard let instagram = URL(string: "https://www.instagram.com/yourpagename") else { return } UIApplication.shared.open(instagram)