xcode - FaceBook checkin in IOS 6 and IOS 5 -
i have predefined location of different stores.i want checkin these locations through ios app.how can it?
here code used 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", // latitude , longitude in string format (json) @"testing check in", @"message", // status message nil]; // tags, @"tags", // user's friends beingness checked in [[appdelegate facebook] requestwithgraphpath:@"me/checkins" andparams:params andhttpmethod:@"post" anddelegate: self]; // deselect
ios xcode facebook ios5 ios6
No comments:
Post a Comment