Request_token problem in Blackberry


#1

Hi all,

I am using phonegap’s childbrowser and jsoauth1.3.6 for tweeting feature in Blackberry ver6. When I try to get the request_token, I am getting an alert box saying:content at api.twitter.com requires authentication, please enter your name and password. This alert box is not there anywhere in my code but still I am getting this. Please help me to resolve this. The code I used is:
oauth.get(‘https://api.twitter.com/oauth/request_token’,
function(data) {
requestParams = data.text;
alert("AppLaudLog: requestParams: " + data.text);
window.plugins.childBrowser.showWebPage(‘https://api.twitter.com/oauth/authorize?’+data.text,
{ showLocationBar : false });
},
function(data) {
alert(‘Error : No Authorization’);
alert(JSON.stringify(data));
alert("AppLaudLog: 2 Error " + data.text);
$(’#oauthStatus’).html(‘Error during authorization’);
}
);

Regards
Ashwini