There is no request token for this page error message


#1

I’m creating a cross-platform mobile app using Telerik AppBuilder. They have provided a sample app for connecting your app with Facebook using jso library. The point is that it works just fine. Now I want to connect my app with Twitter, and post a constant string as a tweet on behalf of the signed-in user. The point is that when I press the button for logging my app to FB it works, but I don’t know how to edit it and make it work for Twitter. I already created a Twitter app. I have the following code, and if I press the button for signing-in into Twitter, I get a page with the message:

Whoa there!
There is no request token for this page. That’s the special key we need from applications asking to use your Twitter account. Please go back to the site or application that sent you here and try again; it was probably just a mistake.

jso_configure({ "facebook": { client_id: "537761576263898", redirect_uri: "http://www.facebook.com/connect/login_success.html", authorization: "https://www.facebook.com/dialog/oauth", presenttoken: "qs" }, "twitter": { client_id: "Crec3FzAUTBAc2gLecroBs53r", redirect_uri: "http://www.google.com", authorization: "https://api.twitter.com/oauth/authorize" } }, {"debug": debug});
cmdFBLogin.addEventListener("click", function() {
    jso_ensureTokens({
            "facebook": ["read_stream", "publish_stream"]
        });
});

cmdFBPost.addEventListener("click", function() {
    outputlog("Post to wall...");

    $.oajax({
        type: "POST",
        url: "https://graph.facebook.com/me/feed",
        jso_provider: "facebook",
        jso_scopes: ["read_stream", "publish_stream"],
        jso_allowia: true,
        dataType: 'json',
        data: {
            message: "WOW, I can post to FB!",
            link: "http://www.google.com",
            picture: "http://www.icenium.com/how-it-works.png"
        },
        success: function(data) {
            outputlog("Post response (facebook):");
            outputlog(data);
        },
        error: function(e) {
            outputlog(e);
        }
    });
});

cmdTLogin.addEventListener("click", function() {
   $.oajax({
       type: "POST",
       url: "https://api.twitter.com/oauth/request_token",
       jso_provider: "twitter",
       jso_allowia: true,
       success: function(data) {
           outputlog("Request token response (twitter):");
           outputlog(data);
       },
       error: function(e) {
           outputlog(e);
       }
   });
});
If someone can help me connect my app with Twitter, I would be glad. I just need to sign-in the user, and then tweet a constant Tweet from his/her account (meaning on his/her behalf).