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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:46:23+00:00 2026-05-21T11:46:23+00:00

I have scoured the internet looking for an answer to this question and can’t

  • 0

I have scoured the internet looking for an answer to this question and can’t find one.

Using ONLY the new graph API for FBConnect’s newest SDK how do you “resume a session?”

In the old SDK and API, you could call something like [session resume]; and that would resume your session. I can’t find any equivalent that works with the new SDK/API.

[session resume]; does not work.

[session isSessionValid]; will test the validity of the session, but will not resume it.

Right now, the only thing I think of to do is have the user go to the authorization page for the app each time they use it. However, this is annoying as after the user initially authorizes the app, each time it returns to the page it states: “You have already authorized [name of app] app” and then you can hit okay, and it sends you back to the app with a valid session. *I have seen other posts around the internet where other developers have had to use this same process because they couldn’t find the answer either.

If anybody has any answers, please share them. However, because this question is specifically for the new graph API and new SDK, answers that include code/instructions for the old API or SDK will be deleted.

  • 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-21T11:46:24+00:00Added an answer on May 21, 2026 at 11:46 am

    In the fbdidLogin do

    [[NSUserDefaults standardUserDefaults] setObject:facebook.accessToken forKey:@"AccessToken"];
    [[NSUserDefaults standardUserDefaults] setObject:facebook.expirationDate forKey:@"ExpirationDate"];
    [[NSUserDefaults standardUserDefaults] synchronize];
    

    Every time your app loads recover these keys and create a facebook object with them:

    facebook = [[[Facebook alloc] initWithAppId:@"yourappid"] retain];
    facebook.accessToken    = [[NSUserDefaults standardUserDefaults] stringForKey:@"AccessToken"];
    facebook.expirationDate = (NSDate *) [[NSUserDefaults standardUserDefaults] objectForKey:@"ExpirationDate"];
    

    Use then the isSessionValid on that object. If it is valid, just go ahead and do your graph API business with that very same object. If not then do the normal authorize. It works great for me. Hope it helps.

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

Sidebar

Related Questions

I have scoured the internet but can't find an answer to this : I'm
I have scoured the internet for this answer, and I feel like I keep
I have scoured the internet looking for a solution to this and I am
I have scoured the Internet for an answer to this. I have an array
I've scoured the internet and my own intellect to answer this basic question, however,
Ok. I have scoured for hours. I can't seem to find the answer to
I have scoured the internet to find which CMS's run on CloudSites and the
I've scoured the internet and have yet to find a solution. Help me Stack-Overflow-Kenobi,
This is my first time using stackoverflow for a question, I have read a
I have scoured the internet for code that can be used to allow users

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.