我正在尝试使用Twitter API并获取响应。
{"errors":[{"message":"Bad Authentication data","code":215}]}
我正在使用来自Twitter网站的代码。我已经在模拟器中设置了Twitter帐户,并在设备上尝试过(也尝试了多次通过注销和重新登录),但我无法获得授权访问。
[self.accountStore
requestAccessToAccountsWithType:twitterAccountType
options:NULL
completion:^(BOOL granted, NSError *error) {
if (granted) {
// getting granted false i.e. I am not reaching here
}
}
那么,我需要做什么额外的工作?欢迎提供任何评论或回答。