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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:25:12+00:00 2026-05-30T00:25:12+00:00

I have found that after a certain amount of time, the Facebook session that

  • 0

I have found that after a certain amount of time, the Facebook session that is created using the Javascript SDK, expires. I appreciate that the session cannot live forever but is there a way to keep a user logged into my site indefinitely, unless of course they log out of Facebook?

I use the Javascript SDK in conjunction with the PHP SDK and I am finding it very hard to figure out a solution to this.

If the session does not exist then PHP cannot detect the user and therefore my site thinks they have logged out, when in fact, the session has simply expired and they just need to refresh the page to allow the Javascript SDK to regenerate the session. The reason why I need to sort this so desperately is simply because the user will see a page saying that they are not logged in, when in fact they are. All they need to do is refresh the page to send the new session to the PHP SDK

A page refresh via javascript is not a solution here as this happens too frequently and it does not look good loading half a page and then automatically refreshing

Is there anyway around this?

UPDATE

I have found an article that refers to something called ‘offline_access’, could this be the answer? Can I still post things using this?

  • 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-30T00:25:14+00:00Added an answer on May 30, 2026 at 12:25 am

    Use the “offline_access” permission to extend the life of your access tokens and thereby make your sessions live forever (or until it is deprecated in May).

    from Facebook Extended Permissions

    Enables your app to perform authorized requests on behalf of the user
    at any time. By default, most access tokens expire after a short time
    period to ensure applications only make requests on behalf of the user
    when the are actively using the application. This permission makes the
    access token returned by our OAuth endpoint long-lived.

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

Sidebar

Related Questions

After using Instruments, I have found the a spot in my code that is
After reading several questions about .gitignore I have found no one that could answer
I have found that creating a zip file using the Zip task provided by
I have created an app that sends intents among multiple activities. After doing some
I have found that it is possible to nest another property within an object
I have found that if I use the below typoscript I can redirect my
I have found that how to determine what columns are primary key column of
I have found that I often have to implement some sort of a scheduler
We have found that with our memcache some keys tend to be lost. To
I have found that dragend event in Google Map also trigger the click event

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.