Foursquare iPhone Integration

I am trying to integrate FourSquare into the iPhone. I could not find any good recommendations through Goggling .... Can anyone offer me good recommendations or URLs for integrating FourSquare into iPhone.

thanks

+4
source share
1 answer

Here is the api link

Foursquare Integration Example.

Additional code for Foursquare integration

- (void)viewDidLoad { [super viewDidLoad]; self.title = @"Foursquare"; //check the authentication if ([Foursquare2 isNeedToAuthorize]) { //If needed show the webview webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)]; NSString *url = [NSString stringWithFormat:@"https://foursquare.com/oauth2/authenticate?display=touch&client_id=%@&response_type=code&redirect_uri=%@",OAUTH_KEY,REDIRECT_URL]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url]]; [webView loadRequest:request]; [webView setDelegate:self]; [self.view addSubview:webView]; [webView release]; mTableView.hidden = YES; }else{ //Show your view mTableView.hidden = NO; [Foursquare2 searchVenuesNearByLatitude:@"40.763" longitude:@"-73.990" accuracyLL:nil altitude:nil accuracyAlt:nil query:@"" limit:@"15" intent:@"" callback:^(BOOL success, id result){ if (success) { tableData = [[FoursquareParser parseSearchVenuesResultsDictionary:(NSDictionary*)result] retain]; [mTableView reloadData]; } }]; } } 
+1
source

All Articles