Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

twitter oauth receivePin KrollCallback

Dear Support,
I am using code

var receivePin = function() {
// get the access token with the provided pin/oauth_verifier
// save the access token
oAuthAdapter.showAuthorizeUI('https://api.twitter.com/oauth/authorize?' + oAuthAdapter.getRequestToken('https://api.twitter.com/oauth/request_token'), receivePin);

for using twitter service to post status from my Titanium Developer mobile application, but when it launches, no twitter window appears. And when I am looking for


to trace the received pin it gives me info as
[INFO] <KrollCallback: 0x508a350

tell me where I am wrong. If required the full code I am using, plz let me know.

— asked September 13th 2010 by Amit Srivastava
  • krollcallback
  • oauth
  • receivepin
  • twitter

2 Answers

  • No Problem at all! I got the solution by customizing the adapter file for my own.

    — answered September 15th 2010 by Amit Srivastava
    1 Comment
    • amit,

      can you share your solution? I have been trying to do this for days!

      — commented January 4th 2011 by Raul Riera
  • BirdHouse: Twitter OAuth for Android & iPhone

    To anyone else who is having this issue or similar issues check out BirdHouse,

    Cross-Platform Support & Up-to-Date: BirdHouse has been tested on Android with Linux and Mac as well as on iPhone, both using the latest Titanium Mobile SDK (1.6.2). It has been tested by others and is being maintained to fix any issues.

    Go here for the code and go here for the test app.

    About: The script can send tweets, retrieve tweets, authenticate, "deauthenticate", and send custom API calls to Twitter. For sending tweets, a custom UI popup appears. It is designed to work similar to Titanium's Facebook module.

    David Riccitelli's oauth-adapter doesn't work on Android, but some have forked it to work, such as Ketan Majmudar (go here for his code), I have tried other OAuth scripts as well, but I have been more successful with BirdHouse.

    — answered April 19th 2011 by Joe iEntry
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.