twitterkit

Cannot compose tweets with Twitter Kit 3

ε祈祈猫儿з 提交于 2019-12-07 07:14:24
I followed instruction from https://dev.twitter.com/twitterkit/ios/compose-tweets to compose tweets via my Object C app for iOS 11 // Objective-C TWTRComposer *composer = [[TWTRComposer alloc] init]; [composer setText:@"just setting up my Twitter Kit"]; [composer setImage:[UIImage imageNamed:@"twitterkit"]]; // Called from a UIViewController [composer showFromViewController:self completion:^(TWTRComposerResult result) { if (result == TWTRComposerResultCancelled) { NSLog(@"Tweet composition cancelled"); } else { NSLog(@"Sending Tweet!"); } }]; However, after clicking Connect button at [Connect

Not able to send a Tweet with TwitterKit on iOS 11

喜你入骨 提交于 2019-12-06 23:00:28
问题 I am trying to use the TwitterKit to compose a tweet, via the TWTRComposer class provided. This is the function I call: -(void) tweet:(UIViewController *) root { TWTRComposer *composer = [[TWTRComposer alloc] init]; [composer setText:@"just setting up my Twitter Kit"]; // Called from a UIViewController [composer showFromViewController:root completion:^(TWTRComposerResult result) { if (result == TWTRComposerResultCancelled) { NSLog(@"Tweet composition cancelled"); } else { NSLog(@"Sending

Upgrading App to Swift 4 and iOS 11 - TwitterKit Issues

孤街浪徒 提交于 2019-12-06 02:18:15
I'm trying to upgrade my app to latest iOS support. I've added TwitterKit via CocoaPods, and placed header in my Bridge Header. However; I am getting an error saying: Use of unresolved identified 'Twitter' - did you mean 'TWTRTTwitter'. func application(_ application: UIApplication, didFinishLaunchingWithOptions lauunchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { Twitter.sharedInstance().start(withConsumerKey:"MYKEY", consumerSecret:"MYSECRET") return true } This right out of the Twitter recommended code. I also get it at: func application(_ app: UIApplication, open url: URL,

Not able to send a Tweet with TwitterKit on iOS 11

前提是你 提交于 2019-12-05 03:38:00
I am trying to use the TwitterKit to compose a tweet, via the TWTRComposer class provided. This is the function I call: -(void) tweet:(UIViewController *) root { TWTRComposer *composer = [[TWTRComposer alloc] init]; [composer setText:@"just setting up my Twitter Kit"]; // Called from a UIViewController [composer showFromViewController:root completion:^(TWTRComposerResult result) { if (result == TWTRComposerResultCancelled) { NSLog(@"Tweet composition cancelled"); } else { NSLog(@"Sending Tweet!"); } }]; } There are two problems with this: When the Twitter app is installed on my device, the

Login with Twitter on iOS

雨燕双飞 提交于 2019-12-04 21:18:44
I have a problem with twitter login on iOS. If the user has account set in Settings application, I get the following error: [TwitterKit] did encounter error with message "User's system account credentials are invalid.": Error Domain=TWTRLogInErrorDomain Code=7 "The system account credentials are no longer valid and will need to be updated in the Settings app." UserInfo={NSLocalizedDescription=The system account credentials are no longer valid and will need to be updated in the Settings app., NSLocalizedRecoverySuggestion=The user has been prompted to visit the Settings app.} And the