How do I post a message on Facebook while uploading an image on Facebook?
In my project I'm using FBFeedPost
for uploading开发者_如何学Go 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];
精彩评论