void __NT__OpenFacebookPublicPage(const char * pageid, const char * name) { NSString *str_url = [NSString stringWithFormat:@"%@%@", @"fb://profile/", __makeNSString(pageid) ]; NSURL *facebookURL = [NSURL URLWithString:str_url]; if ([[UIApplication sharedApplication] canOpenURL:facebookURL]) { [[UIApplication sharedApplication] openURL:facebookURL]; } else { NSString *web_url = [NSString stringWithFormat:@"%@%@", @"https://www.facebook.com/", __makeNSString(name) ]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:web_url]]; } }