如何获得推特ID ....?我通过Fabric使用twitter SDK

时间:2015-07-23 11:44:24

标签: ios swift twitter-oauth

capacity

如何使用获取推文ID来获取有关推文的信息?

1 个答案:

答案 0 :(得分:-1)

试试这段代码。

TWTRLogInButton* logInButton =  [TWTRLogInButton
                                 buttonWithLogInCompletion:
                                 ^(TWTRSession* session, NSError* error) {
                                     if (session) {
                                         NSLog(@"signed in as %@", [session userID]);
                                           } else {
                                         NSLog(@"error: %@", [error localizedDescription]);
                                     }
                                 }];
logInButton.center = self.view.center;
[self.view addSubview:logInButton];