ideashower/ShareKit — Issue #346: Twitter Unknown error (403)
Author: iBasel
Created: 2012-02-26 13:50:00+00:00
State: open

I'm using ShareKit to share through FB and twitter. I'm using this code to share to twitter:

- (IBAction)twitterShare:(id)sender {
// Create the item to share (in this example, a url)
NSURL *url = [NSURL URLWithString:[flexViewController shareURL]];
SHKItem *item = [SHKItem URL:url title:[flexViewController shareText]];

[SHK setRootViewController:self];
// Share the item
[SHKTwitter shareItem:item];
}

I'm getting "403 Forbidden:The server understood the request but is refusing to fulfill it". This always happens if the login view was prompted. If the user was already logged in from an earlier session (the app was closed and reopened), it works correctly. But this is not how I want the app to behave, I have a different user each time the app is used.

In this page, it declares that 403 means I have reached a limit, which I don't think it's my case. https://dev.twitter.com/docs/error-codes-responses

The above code worked correctly last week, but now I'm getting this error.