Tag: twitter

出现无法发送Tweetpopup窗口

我添加了Twitter到我的iOS应用程序。 我在ShareKit中使用iOS 5的TWTweetComposeViewController。 它返回TWTweetComposeViewControllerResultDone。 所以ShareKit得到发送DidFinish,并认为鸣叫是成功的。 它顺利退出。 然后,<1分钟后,苹果显示一条消息: “无法发送” “推特,”等等等等“不能发送,因为连接到Twitter失败。” 我在中国,我关掉了VPN,所以技术上这个信息是正确的。 但是,我怎么知道我会得到这个消息呢? 我怎么知道推特是否最终被发布? 这样我可以保持“加载”图标仍在后台旋转。 是否有通知消息,我可以听? 谢谢

鸣叫,而不使用鸣叫表

我正在使用下面的代码通过twitter共享内容(从UITextView , UIImageView ) -(void)shareViaTweet:(NSString *)shareMessage{ if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [tweetSheet setInitialText:[NSString stringWithFormat:@"%@",shareMessage]]; if (self.imageString) { [tweetSheet addImage:[UIImage imageNamed:self.imageString]]; } if (self.urlString) { [tweetSheet addURL:[NSURL URLWithString:self.urlString]]; } [self presentViewController:tweetSheet animated:YES completion:nil]; } else { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Sorry" message:@"You can't send a tweet right now, make sure your […]

使用SLRequest iOS访问Twitter直接消息

我需要使用SLrequest访问直接消息。 我使用twitter的Reverse oAuth获得了oAuthToken和oAuthToken秘密。 现在我需要知道如何从https://api.twitter.com/1.1/direct_messages.json url中获取直接消息。 我曾尝试添加SLRequest的oAuthToken和oAuthTokenSecret部分,但是我得到了同样的错误,“此应用程序不允许访问或删除您的直接消息”。 oAuthToken和oAuthTokenSecret有什么用处? 如何使应用程序的直接消息工作? 我已将应用程序的访问级别更改为“读取,写入和指导消息”。 请帮我解决这个问题。

如何获取ios中的twitter个人资料图片?

我写了下面的代码: NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1.1/users/show.json"]; NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:username, @"screen_name" ,[[controller.engine accessToken] secret]]; TWRequest *request = [[TWRequest alloc] initWithURL:url parameters:params requestMethod:TWRequestMethodGET]; [request performRequestWithHandler: ^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { if (responseData) { NSDictionary *user = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingAllowFragments error:NULL]; NSString *profileImageUrl = [user objectForKey:@"profile_image_url"]; NSLog(@"%@",profileImageUrl); } }]; 但我总是最终得到一个Bad authentication错误。 我觉得我失去了一些东西。 任何人都请检查我的代码? 或提供任何build议来检索Twitter用户个人资料图片? […]

如何安装只从URL打开Facebook应用程序

我想知道如何才能打开从我的网站在Facebook和Twitter应用程序的url链接,只要它被安装在设备上,如果没有,我希望页面在浏览器中打开。 目前我正在使用以下链接: fb://profile/fbID twitter://user?screen_name=username 目前,如果应用程序已安装,但工作正常,但如果未安装应用程序,链接将失败。此外,如果您试图在桌面浏览器中打开它,twitter链接将完全失败。 有谁知道我怎么去做这个? 是的,我知道有类似的问题,但没有人回答,所以我想我会尝试这个,欢呼。

显示我的Twitter的追随者在iOS 5应用程序的列表?

我正在构build一个基于twitter的演示应用程序。 我已经build立了一个Twitter的login,但我希望它也显示我关注的人。 有什么办法可以得到我所关注的人的名单并显示出来吗? 非常感谢提前!

ios – 展开表格视图单元格像Twitter应用程序

在select推文时,我想要与Twitter应用程序具有相同的行为:扩展行并添加补充内容。 所以这不仅是一个基本的行重新调整。 我想我需要2个不同的自定义单元格,所以我做了这样的事情: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if ([indexPath compare:self.selectedIndexPath] != NSOrderedSame) { FirstCell *cell = [tableView dequeueReusableCellWithIdentifier:@"FirstCell"]; if (!cell) { cell = [[FirstCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"FirstCell"]; } cell.firstnameLabel.text = [[self.items objectAtIndex:indexPath.row] objectForKey:@"firstname"]; return cell; } else { SecondCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SecondCell"]; if (!cell) { cell = [[SecondCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"SecondCell"]; […]

是否有可能绕过推特对话框,并直接发布到Twitter?

我正在使用ShareKit来实现Twitter的份额。 我有一个视图控制器与文本视图,并希望将该文本发送到ShareKit中的文章,同时绕过鸣叫input对话框。 SHKItem *item = [SHKItem text:[postText text]]; [SHKTwitter shareItem:item]; 上面的代码authentication用户如果没有login,然后把我的文本和填充ShareKits鸣叫对话框。 通过他们的代码挖掘混淆了我。 有没有人能够成功地发布鸣叫文本直接到Twitter?

如何使用iOS中的Twitter Kit / Fabric从login的用户获取用户个人资料图像

我正在使用Fabric以便在我的应用程序中添加“使用Twitterlogin”button。 login过程中工作正常,但我不知道如何(如果可能)如何获取login的用户的个人资料图像。 TWTRSession里面有这个信息的任何属性(如userName和userID)? 看着它,但我没有find什么? [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { // I get user data here… // and need to get user Twitter's profile image }]; 谢谢 编辑 感谢sak的回答,我想出了如何做到这一点。 [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { [[[Twitter sharedInstance] APIClient] loadUserWithID:session.userID completion:^(TWTRUser *user, NSError *error) { NSLog(@"User image %@", user.profileImageURL); }]; }];

无法构buildObjective-C模块“TwitterKit”

我试图通过Fabric在我的项目上安装TwitterKit,但在这个问题上陷入困境: 无法构buildObjective-C模块“TwitterKit” 我正在使用Swift和TwitterKit(2.2.0) 我试图清理派生的数据,干净的生成文件夹已经不起作用。 尝试了这个解决scheme,但没有为我工作: https : //twittercommunity.com/t/could-not-build-objective-c-module-twitterkit/49551 这是错误: 有没有人有这个解决scheme? 非常感谢!