Checking FaceBook on iOS 6 and iOS 5

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", //The PlaceID
                               coordinates, @"coordinates", // The latitude and longitude in string format (JSON)
                               @"Testing check in", @"message", // The status message
                               nil];
//                                       tags, @"tags", // The user friends who are being checked in

[[appDelegate facebook] requestWithGraphPath:@"me/checkins" andParams:params andHttpMethod:@"POST" andDelegate: self];
// Deselect
+5
source share

All Articles