views:

123

answers:

4

how to resolve it?

#define SHKTwitterConsumerKey       @""
#define SHKTwitterSecret            @""
#define SHKTwitterCallbackUrl       @"http://example.com/oauth"
#define SHKTwitterUseXAuth          0 
#define SHKTwitterUsername

not have anyfield for API key

+1  A: 

First, you need to get an API key from Twitter. Second, you need to give ShareKit that API key. The documentation suggests that you can configure that in SHKConfig.h. That should fix the issue.

icktoofay
i have update my infomation
RAGOpoR
@RAGOpoR: With OAuth, it appears that what was previously an API key is now a combination of the consumer key and a secret, so though the terminology I used might now be incorrect, you still have to register your application and add the relevant details to `SHKConfig.h`.
icktoofay
i already register and have all key,but shkconfig not have a field to fill my API key
RAGOpoR
A: 

I am having the same issue. ShareKit demo app works fine with the same settings, then bring it in to my own project and I get that error?

Burf2000
A: 

I had the same problem -- it was actually complaining about not having filled in the login info for the bit.ly url shortener.

John Albano
+2  A: 

By default, Sharekit uses bit.ly to shorten URLs when tweeted. If you don't configure the Bit.ly settings (directly below the Twitter settings) it will fail to shorten the URL and will leave MISSING_ARG_APIKEY in place of the link you're attempting to tweet. Adding a bit.ly username and API key will solve the problem.

Fireandlight27