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

The Archive Base Latest Questions

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

At some point, Facebook changed the behavior of the fbml login button so that

  • 0

At some point, Facebook changed the behavior of the fbml login button so that it does not appear when the user is already logged into your website via FB.

That’s all well and good, but I am running into a situation where the PHP SDK thinks that the user is not logged in, but the FBML button DOES think that the user is logged in, and as a result, it’s not displaying itself.

Any ideas for how I might debug this further? This might be an edge case, but I need to fix it because users won’t be able to log in when the FB button is missing.

  • 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-25T21:04:12+00:00Added an answer on May 25, 2026 at 9:04 pm

    Here is an update on what we have learned for anyone running into the same problem.

    The problem appears to occur because we upgraded our Facebook PHP SDK to 3.1.1 from a previous version.

    After tracing through the code, we learned that in the previous version of the FB PHP SDK, session state was stored in a cookie called fbs_. The new version of the SDK isn’t able to restore the session from this cookie. Instead, it relies on a cookie called fbsr_ in order to store a signed request.

    So if fbs_ is set a certain way, the fb:login-button thinks that you are logged in, but the 3.1.1 SDK does not think you are logged in.

    We tried manually clearing the fbs_XXX cookie via code, but that cookie would be restored every time the fb:login-button did its thing. In the end, we ended up creating our own login button using $facebook->getLoginUrl(), which seems like the new way that Facebook wants you to do things anyway.

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

Sidebar

Related Questions

In my current .NET and FBML-based facebook app, I have some code that looks
I've got some code that does a bunch of set-up, then posts to Facebook
At some point Find All References feature got broken for a single solution that
I believe I read at some point that due to Android running on the
I'm building a app with Bump API and Facebook SDK. And at some point
My site already has a Facebook authentication feature, allowing people to login using their
I'm integrating my web-based game to a Facebook Game . Facebook login, getting user
Question Is there a usable facebook entry point to the Data Storage API that
At some point in time I turned on a setting in Visual Studio 2005
At some point I need to display a disabled (greyed out by disabled=disabled attribute)

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.