如何在Facebook上上传图片时在Facebook上发布消息?在Facebook上发布消息以及图片
在我的项目中,我使用FBFeedPost
在Facebook上上传图片,并且工作正常,但我必须随图像一起发布消息。
如何在Facebook上上传图片时在Facebook上发布消息?在Facebook上发布消息以及图片
在我的项目中,我使用FBFeedPost
在Facebook上上传图片,并且工作正常,但我必须随图像一起发布消息。
我推荐ShareKit,轻松设置并支持您所要求的脸书功能。
安装的授权之后,以刚做:
SHKSharer *service = [[[SHKFacebook alloc] init] autorelease];
[service authorize];
之后,它的
SHKItem *item = [SHKItem image:myImage title:@"Look at me!"];
[SHKFacebook shareItem:item];
的图像和文字:
SHKItem *item = [SHKItem text:text];
[SHKFacebook shareItem:item];
如何添加图片,网址和标题? SHKItem * item = [SHItem image:myImage url:url title:@“看看我!”];给出了太多的参数错误。谢谢 – hanumanDev 2011-05-15 23:56:57
我也建议你给[BMSocialShare](http://github.com/blockhaus/BMSocialShare)一个尝试,我写的库。如果您只想使用Facebook,Twitter和电子邮件,它比ShareKit简单。 – vinzenzweber 2012-05-17 13:35:14
可能的重复:[1](HTTP (http://stackoverflow.com/questions/2437574/)[2](http://stackoverflow.com/questions/5881676/)[3](http://stackoverflow.com/questions/5391136/)[ 4](http://stackoverflow.com/questions/2498398/)[5](http://stackoverflow.com/questions/5637252/)[6](http://stackoverflow.com/questions/4351830/) [&c。](http://stackoverflow.com/search?q=message+facebook+%5Bobjc%5D) – 2011-05-05 19:46:23