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

  • Home
  • SEARCH
  • 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 4591076
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:20:34+00:00 2026-05-21T22:20:34+00:00

My twitter part on my app suddenly doesn’t work anymore. When I want to

  • 0

My twitter part on my app suddenly doesn’t work anymore. When I want to authenticate the app crashes. I get a fast glimpse of the pop up window to login (Which has a new layout) and it crashes with the following errors:

http://www.pastie.org/1846358

It worked fine yesterday, so I guess there’s a problem with the new layout of the auth window or so? I can’t really find something in the output what the problem was, beside that it gives errors about the html things.

Can anyone help me out? Or does anyone have the same problem, and confirm that I’m not the only one?

I’m using Titanium SDK 1.6.2 and iPhone SDK 4.2.

Thanks!

  • 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-21T22:20:35+00:00Added an answer on May 21, 2026 at 10:20 pm

    If you use MGTwitterEngine, go to SA_OAuthTwitterController.m. And change this:

    - (void) webViewDidFinishLoad: (UIWebView *) webView {
    NSError *error;
    NSString *path = [[NSBundle mainBundle] pathForResource: @"jQueryInject" ofType: @"txt"];
    NSString *dataSource = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding       error:&error];
    
    if (dataSource == nil) {
        //YFLog(@"An error occured while processing the jQueryInject file");
    }
    
    //DLog(@"%@", [_webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('body')[0].innerHTML"]);
    [_webView stringByEvaluatingJavaScriptFromString:dataSource]; //This line injects the jQuery to make it look better
    //check for auth_pin element
    NSString *authPin = [[_webView stringByEvaluatingJavaScriptFromString: @"document.getElementById('oauth_pin').innerHTML"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
    authPin = [[_webView stringByEvaluatingJavaScriptFromString: @"document.getElementById('oauth_pin').getElementsByTagName('kbd')[0].getElementsByTagName('code')[0].innerHTML"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
    if (authPin.length == 0)
        authPin = [[_webView stringByEvaluatingJavaScriptFromString: @"document.getElementById('oauth_pin').getElementsByTagName('a')[0].innerHTML"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
    //if the auth pin not found than check for the auth-pin elenent
    if (authPin == nil || authPin.length == 0) {
        authPin = [[_webView stringByEvaluatingJavaScriptFromString: @"document.getElementById('oauth-pin').innerHTML"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
        if (authPin.length == 0) {
            authPin = [[_webView stringByEvaluatingJavaScriptFromString: @"document.getElementById('oauth-pin').getElementsByTagName('a')[0].innerHTML"] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
        }
    }
    [_activityIndicator stopAnimating];
    if (authPin.length) {
        [self gotPin: authPin];
    } 
    if ([_webView isLoading] || authPin.length) {
        [_webView setHidden:YES];
    } else {
        [_webView setHidden:NO];
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my rails 3 app I use Omniauth for the user authentication part (fb/twitter).
I'm using Omniauth to get credentials from Twitter for a specific User. Part of
I want to store Tweets and Facebook Status in my app as part of
Part of my script contacts Twitters api to get the number of shares: twitter
With Twitter Bootstrap 2, how do get links working within collapse-nav: <div class=navbar navbar-fixed-top>
Started coding up a simple android app. Part of it pulls the users last
Ok so I am trying to integrate twitter into my iPhone app. I have
I followed Ryan Bates Omniauth Part1 railscats http://railscasts.com/episodes/235-omniauth-part-1 . I put twitter and Facebook
I'm trying to use Twitter's Oauth Single Token for posting from a rails app
I am working on an app which I want to register in the Share

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.