我已经在我的iphone应用程序中创建了titter登录,这里我想将我的访问令牌和密钥发送到服务器以进行自动共享功能,我无法获取我的访问令牌和sekret密钥,请提前帮助我
这是我的代码:
ACAccountType *twitterType = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[store requestAccessToAccountsWithType:twitterType
withCompletionHandler:^(BOOL granted, NSError *error){
if(!granted){
NSLog(@"%@",[error localizedDescription]);
}
NSLog(@"store %@",store);
}];
if([[store accounts] count] > 0)
{
NSLog(@"TWEET");
self.hasTwitterAccountAccess = YES;
}
else
{
NSLog(@"newlog");
self.hasTwitterAccountAccess = NO;
}
if(self.hasTwitterAccountAccess){
NSLog(@"login");
// If we have twitter access, refresh the table view
ACAccountType *twitterType = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
}