开发者

How can I post formatted text with local image on Facebook or Twitter?

开发者 https://www.devze.com 2023-02-19 10:31 出处:网络
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.

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消