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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:25:31+00:00 2026-05-24T20:25:31+00:00

I have fbconnection in my application it works fine but when i logout and

  • 0

I have fbconnection in my application it works fine but when i logout and re login; this is the place that the app crashes. This is the FBSession.m file. I need help with these i google it search but can’t find anything usefull. Anybody understand or know the solution?Thanks for helping.

- (BOOL)resume {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
FBUID uid = [[defaults objectForKey:@"FBUserId"] longLongValue];
if (uid) {
    NSDate* expirationDate = [defaults objectForKey:@"FBSessionExpires"];
    if (!expirationDate || [expirationDate timeIntervalSinceNow] > 0) {
        _uid = uid;
        _sessionKey = [[defaults stringForKey:@"FBSessionKey"] copy];
        _sessionSecret = [[defaults stringForKey:@"FBSessionSecret"] copy];
        _expirationDate = [expirationDate retain];

        for (id<FBSessionDelegate> delegate in _delegates) {
            [delegate session:self didLogin:_uid];// This is the place that gives EXC_BAD_ACCESS
        }
        return YES;
    }
}
return NO;
}

Edit:

- (void) viewDidLoad {
[super viewDidLoad];

static NSString* kApiKey = @"605a4eee24bc4018210207cd152aaf0e";
static NSString* kApiSecret = @"4057291afc9430895461774a43881751";
_session = [[FBSession sessionForApplication:kApiKey secret:kApiSecret delegate:self] retain];

// Load a previous session from disk if available.  Note this will call session:didLogin if a valid session exists.
[_session resume];
NSLog(@"resume");
}

this is the place i set delegate

  • 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-24T20:25:32+00:00Added an answer on May 24, 2026 at 8:25 pm

    Search your project and find all files that your are putting into the delegates. From all these file’s dealloc methods, remove them from the _delegates.

    Most likely it’s crashing because your delegate object (which could be a viewController that was popped earlier) is released and the _delegates array contains a hanging pointer to it.

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

Sidebar

Related Questions

I have encrypted the web.config file of my MVC3 web application with aspnet_regiis.exe. BUT
I have a query that is working fine on my local but when placed
I have an application with multiple DbContext subclasses that share a connection string (this
I have a C# application that connects to a named SQL Express instance on
I have a .NET Wndows application in C#. It's a simple Windows application that
I have a stand-alone java application that makes some database read/write business on a
I have created a C3 WPF application that manages data on a database. So
So here it goes, i have this application retrieves records from database, i have
I have an application that will, among other things, store various data into a
have written this little class, which generates a UUID every time an object 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.