Categories
Featured iPhone Development Resources

With Just 3 Lines Of Code Add Twitter/Facebook Into Your iOS App

Social sharing is something that many people look to put into their apps because it increases the chances of an app going viral and getting more sales.

However, with so many features to add — and so little time — it’s often one of those things that ends up being tossed out.

Fortunately for us Nate Weiner has created a slick library that allows you to add in a multitude of social sharing features into an app with just a few lines of code.  Check out the video:

The ability to use many different services is included such as Twitter, Google Reader, Facebook, Read It Later and others.  You can also share different types of content such as URLs, pictures and files.

Best of all the entire library is open source with an MIT license and easily customizable.

The Github Is Here:
ShareKit Github

Check out the homepage and documentation here:
ShareKit Drop In Share Library

Hope you like it, I’m playing with it right now, and so far it looks exactly as described.

[Source: iOS Dev Goodies]

Btw, if you’ve created an open source library and would like some exposure (along with a backlink) submit information about it here and I’ll be glad to check it out, and put it in front of the 2,000+ daily visitors to this site.

5 replies on “With Just 3 Lines Of Code Add Twitter/Facebook Into Your iOS App”

Excellent tip and it sure saves A LOT OF TIME from coding! Just tried on a project I’m working for a client and it worked fantastic! Once caveat from the instructions on page 3 in the “How to Add ShareKit to Your App” the statement should read:

[actionSheet showFromToolbar:self.navigationController.toolbar];

and not (it does not work with just navigationController.toolbar. Add the .self)

[actionSheet showFromToolbar:navigationController.toolbar];

Other than that the tip works fantastic!

Excellent tip and it sure saves A LOT OF TIME from coding! Just tried on a project I’m working for a client and it worked fantastic! Once caveat from the instructions on page 3 in the “How to Add ShareKit to Your App” the statement should read:

[actionSheet showFromToolbar:self.navigationController.toolbar];

and not (it does not work with just navigationController.toolbar. Add the .self)

[actionSheet showFromToolbar:navigationController.toolbar];

Other than that the tip works fantastic!

Excellent tip and it sure saves A LOT OF TIME from coding! Just tried on a project I’m working for a client and it worked fantastic! Once caveat from the instructions on page 3 in the “How to Add ShareKit to Your App” the statement should read:

[actionSheet showFromToolbar:self.navigationController.toolbar];

and not (it does not work with just navigationController.toolbar. Add the .self)

[actionSheet showFromToolbar:navigationController.toolbar];

Other than that the tip works fantastic!

Hi I would like to know if the Sharekit app can share multiple photos on single button action to a particular service.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.