I want to share my local saved image and formatted text on Twitter or Facebook using my application.
For example, I want to combine both image and bolded text in a single post.
Are there any APIs available for开发者_运维技巧 it?
I recommend using ShareKit in your iOS application.
It is very easy to integrate a variety of Social Networking sites.
I find ShareKit pretty hard to use for a simple task like sharing to Facebook, Twitter or Email. Therefore I wrote a simple lib called BMSocialShare. Maybe you wanny give it a try?
BMFacebookPost *post = [[BMFacebookPost alloc]
initWithTitle:@"Simple sharing via Facebook, Email and Twitter for iOS!"
descriptionText:@"Posting to Facebook, Twitter and Email made dead simple on iOS. Simply include BMSocialShare as a framework and you are ready to go."
andHref:@"https://github.com/blockhaus/BMSocialShare"];
[post setImageUrl:@"http://www.blockhausmedien.at/images/logo-new.gif"
withHref:@"http://www.blockhaus-media.com"];
[[BMSocialShare sharedInstance] facebookPublish:post];
精彩评论