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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:05:28+00:00 2026-06-02T13:05:28+00:00

I am working on an android app which links to facebook (using the following

  • 0

I am working on an android app which links to facebook (using the following tuturoial – https://developers.facebook.com/docs/mobile/android/build/). However, I want to download and save a friend’s info page so my program can read more information which the Facebook API does not provide such as email or phone number. If I go with the routine listed below, Facebook will not see me as logged in. What approach should I take to do this?

public static void main(String[] args) {
    try {
      URL u = new URL("https://www.facebook.com/profile.php?id=********");//where id is your friend's profile ID
      OutputStream out = new FileOutputStream("bob.html");
      InputStream in = u.openStream();
      DTD html = DTD.getDTD("html");
      System.out.println(html.getName());
      in.close();
      out.flush();
      out.close();
    } catch (Exception e) {
      System.err.println("Usage: java PageSaver url local_file");
    }
}
  • 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-02T13:05:29+00:00Added an answer on June 2, 2026 at 1:05 pm

    There is no way using the Facebook API to get the phone number or email address of your Friends – believe me, I’ve tried, and its really annoying! However, I can see that its configured that way to help preserve privacy of the user.

    If you want to get this information directly from a URL, you’ll probably need to simulate the logging in process of Facebook – ie send a POST message to http://www.facebook.com and parse through the Username and Password of your user. This would log you in, and create a session object. You should then be able to call the profile URL, pass in the session object, and it will return the information you need.

    I should point out, however, that this kind of access is strictly forbidden by Facebook, and they have made it perfectly clear in their Terms of Service that they will ban any developers and apps that attempt to use this kind of procedure to access the profile pages. Refer to https://developers.facebook.com/policy/ for the developer Facebook policy.

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

Sidebar

Related Questions

I am working on an android app in which I am using some Native
I'm working on an Android app in which I would like to use multi-touch.
I have made an android app which working fine. I implemented the Login functionality
I am working on an android app that has a database in which one
I have an app which was tested thoroughly and working fine on Android Gingerbread
I have an Android app that I had working a few months ago which
i am beginner in Android app development i am working on a app which
I want to integrate facebook(like),twitter,google plus(bubble button) into my android app, which is developed
I am working on an Android app which runs a periodic service (every 15
I am working on an android app in which i have to fetch data

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.