在Facebook上发送消息以及图像 [英] Posting message along with an image on Facebook
本文介绍了在Facebook上发送消息以及图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,我正在使用 FBFeedPost
用于在Facebook上上传图像,并且正常工作,但我必须发布消息以及图像。
解决方案
我建议 ShareKit ,轻松设置和支持您所要求的Facebook功能。
安装授权完成后,只需:
SHKSharer * service = [[SHKFacebook alloc] init]自动释放];
[服务授权];
之后,它是
SHKItem * item = [SHKItem image:myImage标题:@看着我!];
[SHKFacebook shareItem:item];
图像和文字:
SHKItem * item = [SHKItem text:text];
[SHKFacebook shareItem:item];
How do I post a message on Facebook while uploading an image on Facebook?
In my project I'm using FBFeedPost
for uploading images on Facebook and is working fine, but I have to post a message along with the image.
解决方案
I recommend ShareKit, easily setup and supporting the facebook features you requested.
After installing authorization is done with just:
SHKSharer *service = [[[SHKFacebook alloc] init] autorelease];
[service authorize];
After that it's
SHKItem *item = [SHKItem image:myImage title:@"Look at me!"];
[SHKFacebook shareItem:item];
for an image and for text:
SHKItem *item = [SHKItem text:text];
[SHKFacebook shareItem:item];
这篇关于在Facebook上发送消息以及图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文