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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:54:34+00:00 2026-05-28T16:54:34+00:00

Background: Using Facebook PHP SDK v 2.1.2 cookieSupport = true App on Facebook has

  • 0

Background:

  • Using Facebook PHP SDK v 2.1.2
  • cookieSupport = true
  • App on Facebook has OAuth 2.0 for Canvas enabled
  • Facebook Connect / sign in logic happens over https on a separate subdomain (secure.mysite.com)
  • Dev sites are dev.mysite.com:PORT_NUM

What works

  • I can sign in successfully using Facebook Connect
  • After authorizing via Facebook dialog, we sign the user in and then redirect to fbconnect.php which instantiates the Facebook class and calls $facebook->getSession()
  • This returns a valid Facebook session and we proceed with our post-signIn logic
  • We then redirect to the signed in home page

What doesn’t work

  • Any time after that, the $facebook->getSession() returns NULL. No matter what.
  • According to the docs, Facebook should regenerate a valid session based on the cookie as long as it’s valid. The duration is set to the default of 1 hour, but calls done even 30 seconds after the cookie is set fail.

I’m wondering if there’s something in the fbs_ cookie that’s preventing the regeneration of a session post sign-in. Something related to the secure subdomain or possibly the port numbers we use on our dev sites?

There are a lot of people having similar problems with Facebook sessions from what I’ve seen, but the suggestions I’ve come across don’t seem to address the content of the fbs_ cookie, domains, ports etc. My understanding of how such things relate to cookies is relatively light, but I’d like to at least check them off as non-issues so I can look elsewhere.

Appreciate any insights.

  • 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-28T16:54:35+00:00Added an answer on May 28, 2026 at 4:54 pm

    This issue went away with the new Facebook PHP SDK (v3)

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

Sidebar

Related Questions

BACKGROUND: I am using Facebook Connect to gather users' Facebook image URL (i.e. http://graph.facebook.com/111111/picture
Can I run a PHP CGI script as a background process using exec() ?
I am using the facebook comment plugin on my site. <div id=fb-root></div><script src=http://connect.facebook.net/en_US/all.js#xfbml=1></script><fb:comments style=background-color:#131514;
BACKGROUND: Each user has their Facebook profile image URL associated with their account. This
I have a script that runs in the background over facebook api using json_decode
Background Using boost and other similar libraries is the easiest way to find compiler
I'm doing background subtraction using opencv. The problem is the foreground object is not
I have given a table background image using css background-image property. The cells are
I am attempting to overlay images on top of a background image using the
I am relatively new to multi-threading and want to execute a background task using

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.