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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:20:19+00:00 2026-05-27T03:20:19+00:00

I started to use IOS and the Graph Api some weeks ago. I have

  • 0

I started to use IOS and the Graph Api some weeks ago. I have problems to fill a UITableView with the albums data that I retrieve from facebook. I make my appdelegete my uitabledatasource and uitabledelegate too I make the following request after the user is logged:

NSString* fql = [NSString stringWithString:@"select object_id, cover_object_id, name, description from album where can_upload=1 and owner=me ()"];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObject:fql forKey:@"query"];
[facebook requestWithMethodName:@"fql.query" andParams:params andHttpMethod:@"GET" andDelegate:self];
[theTable reloadData];

And I implement the following to the table:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return [self.resultData count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: SimpleTableIdentifier];
    if (cell == nil) { 
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:SimpleTableIdentifier] autorelease];
    }
    NSUInteger row = [indexPath row]; cell.textLabel.text = [[self.resultData objectAtIndex:row] valueForKey:@"name"];
    NSLog(@"the name %@", [[self.resultData objectAtIndex:row] valueForKey:@"name"]);
    return cell;
}

And a manage the result like this:

- (void)request:(FBRequest *)request didLoad:(id)result {
    if ([result isKindOfClass:[NSArray class]]) {
       resultData=result;
        [theTable reloadData];
}
NSLog(@"Result of API call: %@", result);
}

I get a correct result of the query but the table never reload the data so it is always empty

  • 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-27T03:20:20+00:00Added an answer on May 27, 2026 at 3:20 am

    First of all, you need to retain resultData in request:didLoad: (use the setter method!).

    Secondly, you should check if the table does not try reload the data at all or if something in your table view data source methods goes wrong. If the former, it is likely that theTable is actually nil in request:didLoad: so that the reloadData call has no effect. Check that with the debugger.

    If that’s not the case, we need more information. Go through the code with the debugger and check for each of the table view data source methods if they get called and where in that flow the processing goes wrong.

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

Sidebar

Related Questions

I have some code that I use to fill a view with a linear
I started to use Borland's Turbo C++ a few days ago. I actually have
OK, I am officially flabbergasted. I started an IOS project some time ago, and
I'm writing some C++ code that will have to send data over TCP/IP. I
I have recently started programming for the iOS Platform but now I need some
I just started iOS development am currently developing an application that just reads data
I have a couple of projects that I had started under Xcode 3.2.x some
I just started a new iOS project and chose to use Core Data with
I started objective-c and iOS a couple of weeks ago (worth bearing in mind),
Since I've started to use jQuery, I have been doing a lot more JavaScript

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.