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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:26:14+00:00 2026-06-05T21:26:14+00:00

I am adding facebook functionality to my app, and I am using the SDK

  • 0

I am adding facebook functionality to my app, and I am using the SDK provided by Facebook.

I log in using the [facebook authorize:nil] call, and retrieving the user’s friends list making a call to the graph API: [facebook requestWithGraphPath:@"me/friends" andDelegate:self]

However, afterwards I would like to fetch every one of user’s friends details and profile picture. Right now I am doing it making this call:

-(void)getDetailedInfoForFacebookUser:(NSArray *)aIDArray
{
    for (NSString *aID in aIDArray) {            
        [facebook requestWithGraphPath:aID andDelegate:self];
        [facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/picture",aID] andDelegate:self];
    }
}

But the response time is way to long because for the typical user (around 500 friends) there are more than 1000 responses to parse. Is there any way to retrieve all this info not making such a ridiculous amount of requests?

Thanks a lot for the help!

  • 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-05T21:26:16+00:00Added an answer on June 5, 2026 at 9:26 pm

    Using FQL you can make bulk requests and parse all at once!

    -(void) startFriendsRequest
    {
    
        // Construct your FQL Query     
    NSString* fql = [NSString stringWithFormat:@"SELECT uid,name,first_name,middle_name,last_name,pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"];
    
    // Create a params dictionary
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObject:fql forKey:@"query"];
    
    // Make the request 
    [facebook requestWithMethodName:@"fql.query" andParams:params andHttpMethod:@"GET" andDelegate:self];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on adding facebook SSO and the SDK to my project. All
I am just getting into adding Facebook opengraph into my app. I want to
After adding Restkit to the Podfile : platform :ios dependency 'Facebook-iOS-SDK', '1.2' dependency 'RestKit',
We are working on adding some Facebook Connect functionality to our site. Part of
I followed the instruction on adding Facebook Android SDK to Eclipse, but for some
I am building a facebook platform web app using GWT and hosting it on
I am adding Twitter and Facebook login to a MVC 3 test application using
When a user tries to connect to our app through Facebook, I want to
I'm developing a UI functionality for our facebook app locally. I am getting the
I'm planning out adding Facebook integration to a web app I'm working on. For

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.