Reputation: 8168
i try to integrate twitter to iphone app by sharekit i have registerd my application to twitter. i not understand how to setup Callback URL can you tell me more information and step to deploy?
Upvotes: 4
Views: 6409
Reputation: 3431
I've you're trying to post a URL to twitter, make sure you also have the Bit.ly account setup in the ShareKit config - otherwise you'll get a MISSING_ARG_APIKEY message appended to what you tweet.
Edit: Above was meant to be a comment. For the callback URL - set it to anything, it won't actually be used. On the twitter page where you created the application (and got your key and secret) make sure you set your application as a Browser application and not a Client application and it will show the field for the callback URL. Then in Sharekit's config just put the exact same URL that you put in the application's details. I just used my own website's address. In Sharekit's documentation it says that the URL will never actually be visited, it's just needs to be known so that when the web browser that's displaying the OAUTH goes to that URL, Sharekit knows the login was finished.
Upvotes: 2
Reputation: 815
So for example, if you set the callback URL on dev.twitter.com to http://example.com/oauth, you should set SHKTwitterCallbackUrl = @"http://example.com/oauth"
Upvotes: 7