I have a predefined location for different stores. I want to check these locations through my iOS app. How can i do this?
Here is the code I used for iOS 5
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
SBJSON *jsonWriter = [SBJSON new];
NSMutableDictionary *coordinatesDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithFormat: @"%f", latitude], @"latitude",
[NSString stringWithFormat: @"%f", longitude], @"longitude",
nil];
NSString *coordinates = [jsonWriter stringWithObject:coordinatesDictionary];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[[placesArray objectAtIndex:indexPath.row] objectForKey:@"id"], @"place",
coordinates, @"coordinates",
@"Testing check in", @"message",
nil];
[[appDelegate facebook] requestWithGraphPath:@"me/checkins" andParams:params andHttpMethod:@"POST" andDelegate: self];
source
share