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

  • SEARCH
  • Home
  • 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 8722125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:20:23+00:00 2026-06-13T07:20:23+00:00

I am a beginner of android programming. I am trying to use facebook SSO,

  • 0

I am a beginner of android programming. I am trying to use facebook SSO, therefore I follow the instruction of facebook developers and write a simple testing code:

public class MainActivity extends Activity {
private Facebook facebook = new Facebook("xxxxxxxxxxxxxxx");
/** Called when the activity is first created. */   

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Button btn = (Button) findViewById(R.id.button1);
    btn.setOnClickListener(new OnClickListener(){
        //@Override
        public void onClick(View v) {
            facebook.authorize( MainActivity.this, new DialogListener(){
                @Override
                public void onComplete(Bundle values) {
                // TODO Auto-generated method stub
                }
                @Override
                public void onFacebookError(FacebookError e) {
                // TODO Auto-generated method stub
                }
                @Override
                public void onError(DialogError e) {
                // TODO Auto-generated method stub
                }
                @Override
                public void onCancel() {
                // TODO Auto-generated method stub
                }
             });
        }
    }); 

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
}
}

The first time I finish the coding it works. The dialog pop out and I can input my email and password. However, the same cant work after the first time. I checked the LogCat and find out the error:

10-17 17:10:07.227: E/ActivityThread(638): Failed to find provider info for       
com.facebook.katana.provider.AttributionIdProvider

I have tried many time and what I see is the dialog pop out but close immediately. I have checked for solution and I am sure that the Key Hash matched. Can anyone tell me why? Thanks a lot.

Sorry for my stupid question. I have found that in the LogCat there is a “D/Facebook-authorize(638): Login Success! access_token=…… expires=…..”, So I suggest the codes word? however why I dont need to login again even I close my emulator, reboot my computer? How can I switch to other facebook account if I want? Thx a lot.

  • 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-13T07:20:24+00:00Added an answer on June 13, 2026 at 7:20 am

    I think the login is success. But here’s are some suggestion.
    If you want to see the dialog page and want to re-enter the user name and password, try to clear the caches of yours apps first before running it again.

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

Sidebar

Related Questions

Beginner in Android development. My code crashes. I have made a simple Java method
I am a beginner in Android programming. I want to build a simple application
As I am a beginner to Android programming, I was trying to run some
I am a beginner programming android. I am searching for info how to create
I am a beginner to android. in java and other programming languages we get
I am a beginner when it comes to programming with Android/Java, and I am
I'm a beginner android programmer who is trying to set up some USB functionality
I'm a beginner in Android development but not in programming itself. Anyway, this question
I'm beginner in android and I need to create own QR code scanner app.
I am beginner to programming for android. First of all i need that my

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.