ios iPhone:如何像 iPhone 的 facebook 应用程序那样在照片上标记人物?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5135554/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPhone: how to tag people on photo as facebook app for iPhone does?
提问by xvga
I'm building a native iPhone app that takes a picture, does some funny stuff with it. I want the users to be able to tag their facebook friends on the resulting picture, similar to what the facebook app does. It seams that official facebook ios-sdk https://github.com/facebook/facebook-ios-sdklacks this feature.
我正在构建一个原生的 iPhone 应用程序,它可以拍照,并用它做一些有趣的事情。我希望用户能够在结果图片上标记他们的 facebook 朋友,类似于 facebook 应用程序所做的。看来官方 facebook ios-sdk https://github.com/facebook/facebook-ios-sdk缺少此功能。
I wonder: is there some library or some advice that can help avoiding reinventing the wheel?
我想知道:是否有一些图书馆或一些建议可以帮助避免重新发明轮子?
采纳答案by Ajay
Simple go here: http://developers.facebook.com/docs/reference/rest/photos.addtag/
简单到这里:http: //developers.facebook.com/docs/reference/rest/photos.addtag/
and it will build a photo tag URL for you on the right hand side. All you have to do is send a GET request with NSURLConnection, Apple has an example on how to send GET's and POST's:
它将在右侧为您构建一个照片标签 URL。您所要做的就是使用 NSURLConnection 发送 GET 请求,Apple 有一个关于如何发送 GET 和 POST 的示例: