【发布时间】:2012-07-14 01:15:09
【问题描述】:
我需要在用户的 Facebook 墙上发布一张带有用户位置的照片(从相机拍摄)。 现在,facebook 照片对象有一个名为 place 的字段:
object containing id and name of Page associated with this location, and a location field containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information)
现在我如何获得该地点,将其附上照片并将其上传到用户墙。 这是我上传照片的代码:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
resultImage, @"picture",
location, @"place",
nil];
[appDelegate.facebook requestWithGraphPath:@"me/photos"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
但是,我如何在这里获取位置参数?任何人都可以帮忙吗?提前致谢。
【问题讨论】:
标签: ios facebook-graph-api photo-upload