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 6757185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:36:57+00:00 2026-05-26T13:36:57+00:00

I want to implement Facebook Connect in my android application. I have seen a

  • 0

I want to implement Facebook Connect in my android application. I have seen a few applications like foursquare which when you click Facebook Login it jumps to the Facebook app thats installed in the device and requests permission and once granted comes back to the application and logs you in.

I tried to implement the code from the following page
https://developers.facebook.com/docs/mobile/android/sso/

but when i click login a web view dialog pops up and as me to enter username and password.

Can any one refer me to some tutorial on SSO for Facebook Android SDK

public class SplashActivity extends Activity {

    private Button loginButton, signupButton, FacebookButton;

    public static final String APP_ID = "11232201730";
    Facebook facebook = new Facebook("APP_ID");

    String[] permissions = { "user_about_me", "email", "user_birthday",
            "user_location", "publish_stream" };

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);

        FacebookButton = (Button) findViewById(R.id.FacebookLogin);
        FacebookButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {

                facebook.authorize(this, new Facebook.DialogListener() {

                    public void onFacebookError(FacebookError e) {
                        // TODO Auto-generated method stub

                    }

                    public void onError(DialogError e) {
                        // TODO Auto-generated method stub

                    }

                    public void onComplete(Bundle values) {
                        // TODO Auto-generated method stub

                    }

                    public void onCancel() {
                        // TODO Auto-generated method stub

                    }
                });


            }
        });

    }
}

Error

The method authorize(Activity, Facebook.DialogListener) in the type Facebook is not applicable for the arguments (new View.OnClickListener(){}, new Facebook.DialogListener(){})

  • 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-05-26T13:36:58+00:00Added an answer on May 26, 2026 at 1:36 pm

    facebook.authorize(this, new Facebook.DialogListener()

    should be

    facebook.authorize(SpashActivity.this, new Facebook.DialogListener()

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

Sidebar

Related Questions

i want connect my android application to facebook , I have downloaded easy facebook
I have an iPhone application, I implement Facebook login on my app, now users
I want to implement something like facebook's unread items/notifications. I have the following model
I want to implement a facebook like login on my app. The idea is
I want to implement Facebook connect login for my Django site and I've checked
I wanna implement Facebook connect into my application on android. But i am not
I want to implement a Facebook updates(user action and notifications) on my web application
I want to implement the Facebook Like button to my site, but I don't
I have implemented Facebook Connect with ASP.Net 3.5. My problem is when i click
I am writing an application for Android devices, Now I want to implement the

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.