Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8249741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:38:52+00:00 2026-06-07T23:38:52+00:00

In my application, I want to use oAuth protocol during login processes for several

  • 0

In my application, I want to use oAuth protocol during login processes for several sites like Twitter, Facebook and more. I’ve some issues about Twitter oAuth.

I used those lines to access token and secret datas:

AccountManager am = AccountManager.get(MyActivity.this);
Account[] accounts = am.getAccountsByType("com.twitter.android.auth.login");

if(accounts.length > 0) {
    Account acct = accounts[0];
    am.getAuthToken(acct, "com.twitter.android.oauth.token", null, MyActivity.this, new AccountManagerCallback<Bundle>() {
        public void run(AccountManagerFuture<Bundle> arg0) {
            // Accessing token
        }
    }, null);               
} else {
    Toast.makeText(getApplicationContext(), "There is no defined account", Toast.LENGTH_SHORT).show();
}

So I succeed it. But I’m curious about these questions:

  • Do I need any Twitter application?
  • How will I check these tokens or do I have to check? I mean how will I reach users’ information like twitter_id ?

Any information would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:38:54+00:00Added an answer on June 7, 2026 at 11:38 pm

    Do I need any Twitter application?

    Yes, you will need a Twitter application for authentications with a Twitter account. For this, go to Twitter Developers to create your application.

    How will I check these tokens or do I have to check? I mean how will I
    reach users’ information like twitter_id ?

    When you register your Twitter application on the Twitter developer website, Twitter will generate the consumer key and the consumer secret of your app. You can reset them if you want. They are written in a dedicated section for your app. You can access to this section by going to <your Twitter Developers account> (you can authenticate with your own Twitter credentials) > My Applications and clicking on your app.

    For the OAuth token and the OAuth secret, Twitter Developers will generate them for the owner of the application when this last is created. For other users, you will have to do an OAuth Authentication Flow to get their (OAuth) token and secret. You can also retrieve the owner OAuth tokens with this process too. At the end of the process, the Twitter API will give you the final user’s tokens (OAuth token and OAuth secret), the Twitter id and the screen name (username) of the authenticated user. With these informations, you will be able to get all the informations you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use Twitter OAuth in my flex 4 web application and post
I want to use twitter streaming API in my WPF application, I am able
When I use OAuth to connect an application to a twitter account I put
I'm developing a Twitter application on OAuth and I want to provide the ability
How do I use OAuth within my Java GWT application? In particular, I want
In my application i want to use a functionality which can make the vibrate
I want to write a web application and want to use Ruby. I have
In a Android application I want to use Scanner class to read a list
In my Rails application I want to use the will_paginate gem to paginate on
We have a powerbuilder application and we want use a scanner through this application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.