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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:19:05+00:00 2026-05-21T05:19:05+00:00

I’m developing an iPhone iOS app with FB connect. I’m trying to get a

  • 0

I’m developing an iPhone iOS app with FB connect.

I’m trying to get a lot of data for each of my friends, and multiple requests are needed.

I wonder if there’s a way using batch requests in the iOS SDK?

and the other problem with FQL multi-queries. The following query is working only for a limit of one friend! weird.

SELECT eid FROM event_member WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 2)

it returns the error The operation couldn’t be completed. (facebookErrDomain error 1.)
According this example of facebook it should have been working.

  • 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-21T05:19:06+00:00Added an answer on May 21, 2026 at 5:19 am

    You can do batch requests with the Facebook iOS SDK, but you need to prepare the JSON requests yourself. Here is an example:

    • First, create a JSON array string containing 2 JSON requests (see http://developers.facebook.com/docs/api/batch). You can use your preferred JSON API to create these strings.
    • Second, create the dictionary of parameters with the “batch” key mapped to the JSON requests string.
    • Then, send the request. Note that you need to put something in requestWithGraphPath. I simply put “me” (this request is NOT considered). You also MUST send it as a POST http method.
    • Finally, wait for the response array in request:didLoad.

    -(void) prepareMyBatchRequest {
        NSString *jsonRequest1 = @"{ \"method\": \"GET\", \"relative_url\": \"me/friends\" }";
        NSString *jsonRequest2 = @"{ \"method\": \"GET\", \"relative_url\": \"me/albums\" }";
        NSString *jsonRequestsArray = [NSString stringWithFormat:@"[ %@, %@ ]", jsonRequest1, jsonRequest2];
        NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:jsonRequestsArray forKey:@"batch"];
        [facebook requestWithGraphPath:@"me" andParams:params andHttpMethod:@"POST" andDelegate:self];
    }
    
    - (void)request:(FBRequest *)request didLoad:(id)result {
        NSArray *allResponses = result;
        for ( int i=0; i < [allResponses count]; i++ ) {
            NSDictionary *response = [allResponses objectAtIndex:i];
            int httpCode = [[response objectForKey:@"code"] intValue];
            NSString *jsonResponse = [response objectForKey:@"body"];
            if ( httpCode != 200 ) {
                NSLog( @"Facebook request error: code: %d  message: %@", httpCode, jsonResponse );
            } else {
                NSLog( @"Facebook response: %@", jsonResponse );
            }
        }
    }
    

    Concerning your other question, I don’t know (try to ask other questions in distinct posts so it’s easier to follow-up).

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am writing an app with both english and french support. The app requests
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I know there's a lot of other questions out there that deal with this
I'm trying to select an H1 element which is the second-child in its group

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.