1

Does anyone know of a good example utilizing the twitter API and Oauth authentication for sending Twits iPhone SDK ...........

I got stuck @ sending the twits .........I can make a successful login to twitter Via Oauth+MGTwiiterEngine (Can check the credentials).

Now based on that session I want to know how to send twits..

Or either i can do this thing if i can get username & passsword when doing login...but how can i do that????

Help me in either of case..

j0k
  • 22,600
  • 28
  • 79
  • 90
Ajay Sharma
  • 4,509
  • 3
  • 32
  • 59

1 Answers1

0

Use the following to tweet on some event or Button Action

        if(![_engine isAuthorized]){  
        UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:_engine delegate:self];  

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

    } 


    if(_engine){  
        [_engine sendUpdate:tweetContent];
    }
Biranchi
  • 16,120
  • 23
  • 124
  • 161