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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:46:32+00:00 2026-05-20T04:46:32+00:00

I am on a project that involve facebook integration. Following the http://developers.facebook.com/docs/guides/mobile i am

  • 0

I am on a project that involve facebook integration.

Following the http://developers.facebook.com/docs/guides/mobile i am able to integrate the sdk into my application and it runs pretty smooth as well.

Its like a portal where i just need to enter my facebook credential and it will open the facebook content for me within my app screen.We cant manipulate anything from here.

What i want a way to enter my facebook credentials and retrieve my all friends email addresses as list which i can use in my application as i want.like displaying them in a ListView

Like the yahoo.com which on asking facebook credentials , saves a csv file on to the desktop that has all the list of friends addresses. That means facebook do allow retrieval of friends email after proper authentication.

I tried FBRocket as well. it didnt seem to work…

How to programatically achieve this.

  • 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-20T04:46:33+00:00Added an answer on May 20, 2026 at 4:46 am

    In order to acces the facebook graph api you’ll need to use their SDK. You can download it from here https://github.com/facebook/facebook-android-sdk. They provide you with a dialog box for the user to enter their user and password and obtain an oauth token. Then using the Facebook object you can request anything on the graph path API. As with the example they give you can use something similar to show the login dialog.

    package com.greatap;
    
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import com.facebook.android.*;
    import com.facebook.android.Facebook.*;
    
    public class MyGreatActivity extends Activity {
    
        Facebook facebook = new Facebook("YOUR_APP_ID");
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
    
            facebook.authorize(this, new DialogListener() {
                @Override
                public void onComplete(Bundle values) {}
    
                @Override
                public void onFacebookError(FacebookError error) {}
    
                @Override
                public void onError(DialogError e) {}
    
                @Override
                public void onCancel() {}
            });
        }
    
        @Override
        public void onActivityResult(int requestCode, int resultCode, Intent data) {
            super.onActivityResult(requestCode, resultCode, data);
    
            facebook.authorizeCallback(requestCode, resultCode, data);
        }
    }
    

    Your friends list can be accessed using the graph path of /me/friends.

    facebook.request("me/friends");
    

    This should return something that looks like the following

        {
       "data": [
          {
             "name": "Fake",
             "id": "11111"
          },
          {
             "name": "Fake fakerson",
             "id": "111111"
          },
          {
             "name": "So Fake",
             "id": "111111111"
          }
        ]}
    

    You can then access each user using their id and the open graph api to retrieve their email if it’s visible to you.

    fakebook.request("/111111111");
    

    This will give you back a json array that contains your friends IDs. You can then cycle through each of the friends and retrieve their information if it’s available to you.

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

Sidebar

Related Questions

I've got a project coming up that will involve connecting to one to many
I am starting out on a project that will involve ASP.NET MVC using a
Let's say you have a project that will involve two web applications (that will
Got waist deep in a project that will involve presenting zoomable hi res catalog
I've just started working on a project that will involve multiple people entering data
I'm about to start work on a large project that will involve providing a
We have a few projects that involve building an application that is composed of
I'm working on a home project that involves comparing images to a database of
I am working on a project that involves an embedded system which runs a
I am currently undertaking a project that involves extensive use of Java RMI and

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.