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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:19:37+00:00 2026-05-28T18:19:37+00:00

I need fetch user’s friends data with next fields: id, name, gender, birthday, city,

  • 0
  1. I need fetch user’s friends data with next fields: id, name,
    gender, birthday, city, country, profileUrl, pic, pic_small,
    pic_big, is_app_user.

    Before I used FB.Data.query, but now it’s deprecated.

     FB.Data.query('select uid, first_name, last_name, name, pic,
      pic_small, pic_big, birthday_date, sex, current_location,
     profile_url, is_app_user from user where uid in (select uid2 from
     friend where uid1 = {0}', uid).
    
  2. How to fetch friends, who are using app?

I can get all fields what i need, but for example for pictures i need to do additional requests. Can i get all needed fields in single request?

  • 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-28T18:19:38+00:00Added an answer on May 28, 2026 at 6:19 pm

    You can still use same FQL query with Graph API and JavaScript SDK

    var query = 'SELECT uid, first_name, last_name, name, pic, pic_small, pic_big, birthday_date, sex, current_location, profile_url, is_app_user FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = ' + uid;
    FB.api('/fql',{q:query}, function(response){
      console.log(response.data);
    });
    

    You for sure can also get almost same data with Graph API not using FQL at all:

    FB.api('/'+uid+'/friends', {
      fields: 'id,first_name,last_name,name,birthday,gender,location,link,installed'
    }, function(response){
      console.log(response.data);
    });
    

    You have a bit different names and other format (ex location) for those details and miss the picture details in results but this is simple, user picture is available on URL in form http://graph.facebook.com/USER_ID/picture

    use ?type=square | small | normal | large to request a different photo

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

Sidebar

Related Questions

I fetch data in table. but i need to delete it when user click
Im using vb.net and I need to fetch data from two different tables and
I have Core Data setup in my app and need to fetch a bunch
I need to fetch and display the tweets of a particular user and display
I fetch data from SQLite in Listview .I need to delete this item when
I need to load data dynamically as a user scrolls through an NSTableView .
I need to fetch 'Apple'from the Description column of a table where user search
I'm trying to fetch statistics to an user for a game application but need
In Composite C1 I need to fetch the currently selected language, that the user
i need to fetch a url with javascript/jquery and not php. i've read that

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.