我会使用 iOS SDK 在登录用户的墙上发布消息。那是我的代码(它成功发布了消息,但未分配纬度、经度)。任何想法?
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) {
}];