Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2014
    Posts
    14

    Twitter Login page using lwuit symbian

    How to create Twitter login page in lwuit symbian application.please share your ideas.

    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Twitter Login page using lwuit symbian

    Why do you need to create Twitter login page?
    Are you creating an app that should automatically post tweets for user? or manage his account?
    if so you should know that twitter actually support both oauth & xauth which might help it make it easier to you to authenticate your user and get the proper token with out an html engine available.
    Heard of DVLUP? Join here

  3. #3
    Registered User
    Join Date
    Apr 2014
    Posts
    14

    Re: Twitter Login page using lwuit symbian

    I need to create a twitter login page only for login my app via twitter. Need not to do further any functions like tweets etc.

  4. #4
    Registered User
    Join Date
    Apr 2014
    Posts
    14

    Problem in Twitter Login page using lwuit symbian

    I am creating a twitter login page for my application. In that process, Line number 4.if (uam.verifyCredential()) { is not processed. I found the problem in verifying the credential.
    How to solve this problem.
    1.pageWrapper.setOAuthListener(new OAuthDialogListener() {
    2.public void onAuthorize(Token accessToken) {
    3 .Credential c = new Credential(
    AuthenticationConstants.TWCONSUMER_KEY,
    AuthenticationConstants.TWCONSUMER_SECRET, accessToken);
    4. UserAccountManager uam = UserAccountManager.getInstance(c);
    5.try {

    6.if (uam.verifyCredential()) {

    7.String[] data = new String[2];
    data[0] = accessToken.getUserId();
    data[1] = "Twitter";
    XMLImpl dataProcessImpl = new LoginOAuthImpl();
    String input = dataProcessImpl.buildInput(data);
    String output = WebServiceConnector.send(input, true);
    if (!dataProcessImpl.checkStatus(output)) {

    dialog = DefaultLayout.validation(dataProcessImpl
    .getErrorDesc(output));
    dialog.show();
    loginscreen = new LoginScreen(homemidlet);
    return;
    }
    data = (String[]) dataProcessImpl.retrieveData(output);
    WebServiceConstants.identityNo = data[0];
    // homeScreen = new HomeScreen(homemidlet);
    } else {//
    loginscreen = new LoginScreen(homemidlet);
    }
    } catch (Exception e) {
    try {
    dialog = DefaultLayout
    .validation(AppConstants.exceptionMsg);
    } catch (Exception e1) {

    e1.printStackTrace();
    }
    dialog.show();
    }
    }

    public void onAccessDenied(String message) {
    try {
    showMessage("Access denied!");
    } catch (Exception e) {

    e.printStackTrace();
    }
    }

    public void onFail(String error, String message) {
    try {
    showMessage("Error by authenticating user!");
    } catch (Exception e) {

    e.printStackTrace();
    }
    }


    });

  5. #5
    Registered User
    Join Date
    Apr 2014
    Posts
    14

    How to retrieve the tokens from the twitter api using oAuth

    Dear Friends,
    I m login my app via twitter using oAuth.In that login process we need to retrieve and store the tokens. How to retrieve the tokens from the twitter api.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: How to retrieve the tokens from the twitter api using oAuth

    There is no need to open too many threads all dealing with the same issue.
    Have you looked at https://dev.twitter.com/docs/auth/oauth ?
    you might want to look at https://dev.twitter.com/docs/oauth/xauth also as I think it would work better for your needs.
    First you need to register an application on twitter developer console and retrieve from there the different keys that oauth needs
    Heard of DVLUP? Join here

Similar Threads

  1. how to retrieve login data from facebook login page using lwuit
    By Satheesh in forum Mobile Java General
    Replies: 0
    Last Post: 2014-04-18, 10:45
  2. how to create facebook login page using symbian lwuit java
    By Satheesh in forum Mobile Java General
    Replies: 2
    Last Post: 2014-04-17, 00:58
  3. Unable to do Twitter xauth login to post or receive tweets
    By Basu in forum Mobile Java General
    Replies: 1
    Last Post: 2011-05-16, 11:02
  4. Twitter login
    By Basu in forum Mobile Java General
    Replies: 1
    Last Post: 2010-09-15, 09:24
  5. login to twitter
    By mahdi68 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2009-11-30, 17:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×