简体   繁体   English

iPhone:如何将照片上的人标记为iPhone的Facebook应用?

[英]iPhone: how to tag people on photo as facebook app for iPhone does?

I'm building a native iPhone app that takes a picture, does some funny stuff with it. 我正在构建一个本机iPhone应用程序,该应用程序可以拍照,并做一些有趣的事情。 I want the users to be able to tag their facebook friends on the resulting picture, similar to what the facebook app does. 我希望用户能够在生成的图片上标记其Facebook朋友,类似于facebook应用程序所做的事情。 It seams that official facebook ios-sdk https://github.com/facebook/facebook-ios-sdk lacks this feature. 它表明官方的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? 我想知道:是否有一些图书馆或建议可以帮助您避免重新发明轮子?

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. 它将在右侧为您创建一个照片标签URL。 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: 您要做的就是使用NSURLConnection发送GET请求,Apple提供了有关如何发送GET和POST的示例:

Here is Apple's example 这是苹果的例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM