Multiple login for TwitterAgent

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...
XAuth was not used in my classes,  hope to integrate soon.
Till then please use this: https://github.com/vodkhang/Twitter-XAuth-and-Sharing
Vodkhang used the UI used in TwitterAgent with XAuth.

XAuth was not used in my classes,  hope to integrate soon.
Till then please use this: https://github.com/vodkhang/Twitter-XAuth-and-SharingVodkhang used the UI used in TwitterAgent with XAuth.

TwitterAgent is updated and a new feature is added by your request. I received some requests on multiple login option for TwitterAgent and updated the agent there by. Now a logout option is added to login again with a different userid.

Add twitter agent code to your project

You can checkout the latest code from the google project or can use the folder available in attached demo project below.
Paste the xutils folder into your project directory.

Now, right click on the project in xcode and add the xutils folder.

Add SBJSON

SBJSON is also required for the project. You can have one copy of sbjson source in the attached project.

Add twit code

Add a button and in its event handler method add the following lines:

[[TwitterAgent defaultAgent] twit];

After logging in, you will find a new button available on top right corner, that is the logout button!

TwitterAgent Logout option

On the next version, there will be option to manage batch twit account! Don’t forget to check back soon!

Download Demo project




Add to Google Reader or Homepage


  • Bhushan Backagain

    i posted my wall but it's not updated in my twitter

  • Hi, first of all thanks for visiting.

    Since last year, twitter closed its curl based insecure posting which is used in this code.

    The code is not updated to use XAuth which is now mandatory for using twitter api.

    I will update the code soon, hopefully, till then use project:

    https://github.com/vodkhang/Tw...

    This author used UI from my code.
    All the best!

  • I used this but didn't found that useful, I don't think that multiple login is required, one is enough to handle the whole things.

  • thanks for trying it. 

    Unfortunately the code is not maintained over 1 years. however I am planning to update.

    any idea how to make it more useful?

    Though, the latest IOS sdk is coming with built in twitter feature.

  • Jason

    Well for those who wish to support users with devices that can't run the new iOS it might be helpful.

    Thank You for your Twitter and Facebook examples!

  • Hoangtuanfithou

    I used the Demo Project , and can not post any thing ? pls, check

blog comments powered by Disqus