iOS 6 has introduce new Social framework which is help to integrate all social sharing activity in you iPhone app. iOS 6 has also new UIActivityViewController which is used for social sharing as well as email, SMS, Save to Bookmark and many other options. Here is the sample code for Social framework as well as UIActivityViewController.

Advertisements
Comments
  1. Bruno Becker says:

    Hi
    i’m getting some errors…

    “_OBJC_CLASS_$_SLComposeViewController”, referenced from:

    objc-class-ref in ViewController.o

    “_SLServiceTypeFacebook”, referenced from:

    -[ViewController socialClick:] in ViewController.o

    “_SLServiceTypeSinaWeibo”, referenced from:

    -[ViewController socialClick:] in ViewController.o

    “_SLServiceTypeTwitter”, referenced from:

    -[ViewController socialClick:] in ViewController.o

    ld: symbol(s) not found for architecture i386

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Can you help me with this?

    Tanks

  2. jamil says:

    Simple and easy method for posting…..works great for me.Thanks

  3. gavcreber says:

    Nice work thanks for Sharing

  4. Les says:

    Nice sample code! Thanks for sharing it with us.

  5. Ganesh says:

    Nice tutorial.. What about Google +?

  6. wordgeist says:

    This is a great tutorial. But I have a couple of questions for you. Do you know how to implement this code to post the picture in twitter ? and also do you know how can implement the facebook like button? I’ll really appreciate you comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s