Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6990851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:24:45+00:00 2026-05-27T19:24:45+00:00

I was using Twitter Oath for twitter sharing, suddenly the same code is getting

  • 0

I was using Twitter Oath for twitter sharing, suddenly the same code is getting crashed when i tap Tweet button.

App is Crashing while twitter oath is sending update request.

here is code of sharing option

-(IBAction)ShareWithTwitter:(id)sender
{
    NSLog(@"Tweet !!!");

if(!_engine)
{
    _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
    _engine.consumerKey    =kOAuthConsumerKey;

    _engine.consumerSecret = kOAuthConsumerSecret;  
}
else
{

    _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
    _engine.consumerKey    =kOAuthConsumerKey;

    _engine.consumerSecret = kOAuthConsumerSecret;  


}

UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:_engine delegate:self];

if (controller)
{
    [self presentModalViewController: controller animated: YES];
}


}

And this code is for Tweet !! (where app is crashing).

-(IBAction)updateTwitter:(id)sender
{
activityIndicatorView.hidden=NO;
activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
[activityIndicatorView startAnimating];

[tweetTextField resignFirstResponder];

NSString *strToPostOnTwitter = @"Hello Happy New Year to All !!!";

NSLog(@"String to Post is : %@",strToPostOnTwitter);

//Twitter Integration Code Goes Here
[_engine sendUpdate:strToPostOnTwitter];

//btnTwitter.hidden = YES;

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:24:46+00:00Added an answer on May 27, 2026 at 7:24 pm

    If you are testing it on iOS 5, many times, it will not even generate a token properly. The twitter engine you are using works only with iOS4.

    Now coming to your code, as the token is not generated and without it, you will be trying to post the message and so it crashed. I did a lot of research for the past one month and I decided to implement this way:
    If is iOS 5 device in which you are running the app, use twitter framework. else use MGTwitterEngine.

    Look for the following URL’s
    http://iosdevelopertips.com/core-services/ios-5-twitter-framework-part-1.html
    http://iosdevelopertips.com/core-services/ios-5-twitter-framework-part-2.html
    http://iosdevelopertips.com/core-services/ios-5-twitter-framework-%E2%80%93-part-3.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using twitter bootstrap for some web app I'm forced to do (I'm not
The page I want to open using twitter app: https://twitter.com/#!/PAGE To open twitter app
I am using twitter boostrap to implement tooltip for my web app (twipsy) My
I implemented twitter posting button on my web site using twitter codeigniter library .)
I have successfully created an app to login user and post the tweet using
I'm working on a ruby app that updates a twitter account using 'twitter' gem.
I'm using https://github.com/abraham/twitteroauth library. I already created my app on Twitter, the callbacks are
I'm new to objective-c/cocoa and I want to build a simple app using Twitter
I've been checking/using Twitter Bootstrap for quite a while now. I like what they've
I am using twitter boostrap (twipsy) to implement tooltip for my web app. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.