iOS App Cards Don't Work

ios
fabric
bug
twitterkit
cards

#1

I’m trying to display a tweet composer for an app card using the code below… When I press “Tweet” the button turns gray and appears to load for a few seconds then just goes back to normal. There are no callbacks, log messages, warnings, etc. Any idea what’s causing this?

I’ve also had countless issues related to a lack of App Transport Security support… maybe they’re related?

UIImage *userImage = ...;
NSString *appID = ...;

TWTRSession *session = [Twitter sharedInstance].sessionStore.session;

TWTRCardConfiguration *card = [TWTRCardConfiguration appCardConfigurationWithPromoImage:userImage iPhoneAppID:appID iPadAppID:nil googlePlayAppID:nil];

TWTRComposerViewController *composer = [[TWTRComposerViewController alloc] initWithUserID:session.userID cardConfiguration:card];

composer.delegate = self;

[self presentViewController:composer animated:YES completion:nil];

#2

Hey @ponder,

Do you have a valid user Session at that point? Based on the code, it looks like you’d be ok, but it might be a good test case, to test without a card and then with.


#3

A post was split to a new topic: Quesiton on Twitter Kit