shailesh Parkhi shailesh Parkhi - 1 year ago 106
Objective-C Question

How to check fb app is installed on iPad?

BOOL isInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]]

if (isInstalled) {

} else {


Above code working fine with iPhone but not iPad.

Answer Source

First, you'll need to 'whitelist' the URL by adding the following to your Info.plist file


and check

 if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]]) {
    // Facebook app is installed
 // not installed
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download