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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:11:53+00:00 2026-05-24T02:11:53+00:00

This all is driving me nuts. I just integrated facebook in my iphone app.

  • 0

This all is driving me nuts.
I just integrated facebook in my iphone app.
After typing in my username and password in the login dialog this method is called.

- (void)request:(FBRequest*)request didLoad:(id)result {
    if ([request.method isEqualToString:@"facebook.fql.query"]) {
        NSLog(@"result %@",result);

            NSArray* users = result;
            NSLog(@"users %@",users);
            NSDictionary* user = [users objectAtIndex:0];
            NSString* name = [user objectForKey:@"name"];
            self.facebookName = name;       

            if (_posting) {
                [self postToWall];
                _posting = NO;
            }


    }
}

But after this the app crashes most of the times and when I tried to log the “result” array it appears to be empty. Why is it so?

What should I do? Please suggest.

  • 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-24T02:11:55+00:00Added an answer on May 24, 2026 at 2:11 am

    I got the reason for this.

    This was due to the session getting lost frequently in between.
    So I had to call [session resume] in the facebook login action event
    and in this manner if at all the session is lost by any chance then the previous session is resumed and the “result” does not appears to be nil in (void)request:(FBRequest*)request didLoad:(id)result method.

    Hope this helps out those who are stuck in the same issue.

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

Sidebar

Related Questions

This whole Facebook access_token thing is driving me nuts. All I want to do
This is driving me nuts. I've looked at all the relevant MSDN tutorials but
This is driving me nuts. What happens with width:100% ? Apparently it just works
This has been driving me nuts all day. I've seen this problem crop up
This has been driving me nuts all day. I have a weird bug that
This has been driving me nuts, I'm posting here after a lot of looking
I've been beating around on this thing all day and it's driving me nuts!
Okay so this was driving me nuts all day. Why does this happen: class
This problem has been driving me nuts all day and there has to be
So this has just been driving me nuts! I have looked through tons of

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.