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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:18:30+00:00 2026-05-21T12:18:30+00:00

i want connect my android application to facebook , I have downloaded easy facebook

  • 0

i want connect my android application to facebook , I have downloaded easy facebook android sdk , and imported the jar into my project. Can someone help me to configure the parameters of my facebook application?

public class FacebookConnect extends Activity implements LoginListener {

        private FBLoginManager fbManager;

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                shareFacebook();
        }

        public void shareFacebook() {

                //change the permissions according to the function you want to use 
                String permissions[] = { "user_relationship_details",
                                        "user_religion_politics",
                                        "user_work_history",
                                        "user_relationships",
                                        "user_interests",
                                        "user_likes",
                                        "user_location",
                                        "user_hometown",
                                        "user_education_history",
                                        "user_activities",
                                        "read_stream",
                                        "offline_access"};

                //change the parameters with those of your application
                fbManager = new FBLoginManager(this, "FacebookApplicationName",
                "FacebookApplicationAPIKEY","FacebookApplicationSECRETKEY",
                "FacebookApplicationID","FacebookApplicationSite",permissions);



                if (fbManager.existsSavedFacebook()) 
                   fbManager.loadFacebook(R.layout.black);
                else 
                   fbManager.login(R.layout.black);

        }

        public void onLoginFail() {
                fbManager.displayToast("Login failed!");

        }

        public void onLoginSuccess(Facebook facebook) {

                //library use example
                GraphApi graphApi= new GraphApi(facebook);
                User myFacebookAccount = graphApi.getMyAccountInfo();

        }
}
  • 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-21T12:18:31+00:00Added an answer on May 21, 2026 at 12:18 pm

    I would start by filling up the fields of the FBLoginManager constructor with the relevant information:

    public FBLoginManager(Activity activity,
                          java.lang.String appName,
                          java.lang.String apiKey,
                          java.lang.String secretKey,
                          java.lang.String appID,
                          java.lang.String site,
                          java.lang.String[] permission)
    

    The instructions on how to fill them up are clearly stated here: http://www.easyfacebookandroidsdk.com/guide.asp

    I would recommend you also to read the facebook getting started guide here: http://developers.facebook.com/docs/
    to have a general idea of a fb app, and the android specific guide:
    http://developers.facebook.com/docs/guides/mobile/#android
    to understand how to create the key hash

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

Sidebar

Related Questions

I want to implement Facebook Connect in my android application. I have seen a
I wanna implement Facebook connect into my application on android. But i am not
I have developed an application for my android phone(Samsung GT-S5830) using SDK:2.3.3. I want
I'm working on my first android application and running into an issue I can't
I want to print file using wifi printing in my android application.I have scanned
I want to connect my android application to an external mySQL database and I
Hey i am developing an android application , and i want to connect to
I have an Android application that writes data to the SD card. I want
I connect a database on my server from the Android application and I want
I want to connect to Picasa from an Android application (without interacting with any

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.