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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:59:03+00:00 2026-06-03T07:59:03+00:00

I am new and Please be patient If I am wrong. This below code

  • 0

I am new and Please be patient If I am wrong. This below code is from RESTFB to fetch informations from profile. How should I extract name, id and pricture seperately.

Connection<User> myFriends = facebookClient.fetchConnection("me/friends",        User.class,Parameter.with("Fields", "name,id,picture"));
    Connection<Post> myFeed = facebookClient.fetchConnection("me/feed", Post.class);

    out.println("Count of my friends: " + myFriends.getData().size());
  • 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-03T07:59:04+00:00Added an answer on June 3, 2026 at 7:59 am

    the Name, ID and picture will be in a User class.

    If you look at the USER.JAVA documentation in RestFB, you will see that you will be able to retrive various information that the user has.

    Connection in RESTFB is a Collection, and it supports paging. It will only hold a maximum of 25 objects per request to Facebook. So if there are 50 users, each time you iterate through the Connection, you will only get 25 users. Hence you will have to iterate through the Connection until you get all 50 users.

    If you actually read the examples in RestFB page, they show you how to iterate through the Connection to get data on each object it returns.

    for (List<Post> myFeedConnectionPage : myFeed)
      for (Post post : myFeedConnectionPage)
        out.println("Post: " + post);
    

    So you can do the same for the Connection, and store each User object in an array.

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

Sidebar

Related Questions

This is a totally new area for me so please be patient. I want
I'm new with this so please be patient with me... I want to be
I'm quite new to C# so please be patient with me. I know this
I'm wondering if this code ... StringBuilder sb = new StringBuilder(Please read the following
I'm new to this forum (at least at asking questions), so please be patient.
rowI'm new at zend, so please be patient :). I need to extract only
I am new in Java so please be patient. It is common to map
I'm new to .NET, so please be patient with me ;) On my Windows
Please see my code: IDictionary dictionary = new Hashtable(); const string key = key;
I'm new to C# and WinForms so please excuse me is this is a

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.