Reputation: 1696
I would to post a message on logged user's wall using iOS SDK. That's my code (it posts the messages successfully but lat, lon are not assigned). Any idea?
NSDictionary *coordinates = [NSDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithFormat:@"%f",location.coordinate.latitude],@"latitude",
[NSString stringWithFormat:@"%f",location.coordinate.longitude],@"longitude", nil];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
text,@"message",
[coordinates JSONString],@"coordinates",nil];
[FBRequest startWithGraphPath:@"me/feed"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
}];
Upvotes: 0
Views: 785
Reputation: 1343
I have a couple of suggestions that may apply to your use case:
It looks like this:
FBRequest *request = [FBRequest requestForPlacesSearchAtCoordinate:coordinate
radiusInMeters:radius
resultsLimit:resultsLimit
searchText:searchText];
[request startWithCompletionHandler:...];
Hope this helps!
Upvotes: 2