twitter oauth receivePin KrollCallback
Dear Support,
I am using code
var receivePin = function() {
// get the access token with the provided pin/oauth_verifier
oAuthAdapter.getAccessToken('https://api.twitter.com/oauth/access_token');
// save the access token
oAuthAdapter.saveAccessToken('twitter');
};
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
Ti.API.info(receivePin);
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.
Thanks.
2 Answers
-
No Problem at all! I got the solution by customizing the adapter file for my own.
Thanks. -
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.