Implementation of Foursquare integration in iphone

Source: Internet
Author: User

Original Problem description: we need to implement Foursquare integration on the iphone, but I don't know where to start. Please give me some suggestions and advice. Thank you for your solution: Here is the foursquare api link Foursquare integration example link for more code: Foursquare integration [plain]-(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]; optional * 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" longpolling: @ "-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] ;}}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.