我正在 iphone 应用程序中使用 sharekit 实现 facebook 和 twitter 共享。 Facebook 共享工作正常,但 twitter 共享出现错误“无法验证 OAuth”。
我遇到了同样的问题 - 这解决了它:
https://github.com/ideashower/ShareKit/issues/229 https://github.com/ideashower/ShareKit/issues/229
Summary:
将 SHKTwitter.m 第 54-56 行更改为
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"];
第 323 行,从 http 到 https:
OAMutableURLRequest *oRequest = [[OAMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://api.twitter.com/1/statuses/update.json"]
consumer:consumer
token:accessToken
realm:nil
signatureProvider:nil];`
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)