Add facebook and twitter integration with ShareKit

October 1st, 2011

To register your iOS app with twitter:

1. Get twitter account if you don’t have one already.
2. Login to your twitter account, and go to https://dev.twitter.com/apps
3. Click on the “Create a new application” button.
4. Fill out the form.
Make sure for Access, select “Read and Write”.
The callback URL doesn’t have to be an actual existing url, but needs to match the one in the code, for example, put “http://forum.tufat.com/WikiAnimals” here and the same string in SHKConfig.h.
5. After submit the form, it will tell you the application’s “Consumer key” and “Consumer secret”.
6. Use those values to replace the current values in the SHKConfig.h, look for lines start with

#define SHKTwitterConsumerKey
#define SHKTwitterSecret
#define SHKTwitterCallbackUrl

To register your iOS app with facebook:

1. Get a facebook account if you don’t have one already.
2. Login and go to https://developers.facebook.com/apps
3. Click on the “Create New App” button
4. Fill out the form.
App Namespace, App Domain, Category are optional, you may leave them empty. Make sure “Native iOS App” is checked in the last section.
5. After save the settings, it will show the “App ID” and “App Secret”.
6. Use those values to replace the current values in the SHKConfig.h, look for lines start with

#define SHKFacebookKey
#define SHKFacebookSecret

One Response to “Add facebook and twitter integration with ShareKit”

  1. Aniket Kote says:

    really helpful specially for Facebook integration

RSS feed for comments on this post. And trackBack URL.

Leave a Reply