看到这个问题是不是有点懵了,好吧,不罗嗦了,解决办法如下:
转自:http://jayrparro.posterous.com/incorrect-signature-sharekittwitter-error
I'm just concerned of sharing the URL to be posted in the user's wall.
Reported the problem/bug here:http://bit.ly/kPSHU1
It's found out that the Twitter oAuth has been updated and breaks in this latest release of ShareKit.
Excerpts from Twitter oAuth docs: "Please use HTTPS for this method, and all other OAuth token negotiation steps."
https://dev.twitter.com/doc/get/oauth/authorize
To fix this issue, we need to change SHKTwitter.m in lines 54-56(解决的办法) from https://twitter.com/ to https://api.twitter.com/
self.authorizeURL = [NSURL URLWithString:@"https://api.twitter.com/oauth/authorize"];
self.requestURL = [NSURL URLWithString:@"https://api.twitter.com/oauth/request_token"];
self.accessURL = [NSURL URLWithString:@"https://api.twitter.com/oauth/access_token"];
Then, in sendStatus method update the URL link:
OAMutableURLRequest *oRequest = [[OAMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://api.twitter.com/1/statuses/update.json"] consumer:consumer token:accessToken realm:nil signatureProvider:nil];
This should be fix in the next version of ShareKit. :)