Request failed: internal server error (500)



how can i fix it message:
error Error Domain=TwitterAPIErrorDomain Code=131 “Request failed: internal server error (500)” UserInfo={NSLocalizedFailureReason=Twitter API error : Internal error (code 131), TWTRNetworkingStatusCode=500, NSErrorFailingURLKey=, NSLocalizedDescription=Request failed: internal server error (500)

[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession *session, NSError *error) {
if (session) {
TWTRCardConfiguration *card = [TWTRCardConfiguration appCardConfigurationWithPromoImage:image iPhoneAppID:@“1111111111” iPadAppID:nil googlePlayAppID:nil];
TWTRComposerViewController *composer = [[TWTRComposerViewController alloc] initWithUserID:session.userID cardConfiguration:card];
composer.delegate = self;
[self presentViewController:composer animated:YES completion:nil];
} else {
NSLog(@“error: %@”, [error localizedDescription]);
} }];


App cards are no longer supported in Twitter Kit as of version 3.0.0. Please use the TWTRComposerViewController and provide default values for initialText and image.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.