尝试使用新的iOS 5 API在Twitter上"关注"某人,获得406返回错误.为什么?
我的代码是否正确?需要找出为什么这不起作用....
- (void)followOnTwitter:(id)sender
{
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted) {
// Get the list of Twitter accounts.
NSArray *accountsArray = [accountStore accountsWithAccountType:accountType];
// For the sake of brevity, we'll assume there is only one Twitter account present.
// You would ideally ask the user which account they want to tweet from, if there is more than one Twitter account present.
if ([accountsArray count] …
Run Code Online (Sandbox Code Playgroud) 我想使用twitter api twitter + OAuth在我的iphone上分享图片,但我不知道如何从我的iphone分享它.我使用sharekit尝试了相同的操作,但我没有成功.你能告诉我如何使用twitter api在iphone上分享图片吗?