Blackberry Twitter getting a pop up when getting request_token


#1

I am developing a phonegap based Blackberry app, in this I have twitter share feature.I have written code for getting request_token from twitter using oauth, I am getting a pop up saying that:Content at api.twitter.com requires authentication. Please enter username and password. This is not an expected functionality. Instead of this, I need to get request_token and open Twitter login page in a childbrowser but I don’t know why I am getting this pop up? Please help me.Code I am using is as follows:
oauth = OAuth(options);
oauth.get(‘https://api.twitter.com/oauth/request_token’,
function(data) {
requestParams = data.text;
window.plugins.childBrowser.showWebPage(‘https://api.twitter.com/oauth/authorize?’+data.text,
{ showLocationBar : false });
},
function(data) {
alert(‘Error : No Authorization’);
console.log("AppLaudLog: 2 Error " + data);
$(’#oauthStatus’).html(‘Error during authorization’);
}
);