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

  • Home
  • SEARCH
  • 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 6391037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:37:22+00:00 2026-05-25T03:37:22+00:00

I have a site that uses the Facebook JavaScript API to allow users to

  • 0

I have a site that uses the Facebook JavaScript API to allow users to log in to a Ruby on Rails application through Facebook. When a user clicks to log in or log out, Facebook code does the authentication and then raises an event and supplies a cookie with authentication parameters. The cookie is sent to my server, and I use it to authenticate. This has been working for some time.

  // Connnect with Facebook.
  $('.fbLogout').click(function() {
      FB.logout();
  });
  $('.fbLogin').click(function () {
      FB.login();
  });
  FB.init({appId: '163691796982300', status: true, cookie: true, xfbml: true});
  FB.Event.subscribe('auth.sessionChange', function() {
      location.reload();
  });

I recently got a new computer, and my site doesn’t work from this computer. The Facebook login UI seems to work, the auth.sessionChange event is raised, but it looks like the cookie is never supplied and so the page goes into an endless loop of receiving an authentication event, refreshing the page with no cookie and repeating. The problem seems be on this single computer and happens regardless of which browser I use, and which OS I use.

It works on:

  • Friend’s PC using Internet Explorer
  • Friend’s PC using Firefox Friend’s PC
  • Friends PC using Firefox in Ubuntu 10.10 in VirtualBox
  • Another PC in the same subnet as new computer
  • New computer booting from Ubuntu 10.10 live CD 64-bit

Doesn’t work on:

  • New computer using Internet Explorer
  • New computer using Chrome
  • New computer using Firefox
  • New computer using Firefox in Ubuntu 10.10 in VirtualBox

Could this somehow be caused by my network card or network configuration?

Update:
It started working just as mysteriously as it was failing.

  • 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-25T03:37:22+00:00Added an answer on May 25, 2026 at 3:37 am

    This could be the same thing I had to deal with. In your code I can’t see the asynchronous initialization:

    window.fbAsyncInit = function() {
        FB.init({
              appId  : fb_appId,
              status : true, // check login status
              cookie : true, // enable cookies to allow the server to access the session
              xfbml  : true,  // parse XFBML
              oauth : true //enables OAuth 2.0
        });
    };
    

    This is very important to guarantee that the Facebook JavaScript SDK is fully loaded before you call the init method. Therefore it may suddenly have started working, because the browser already cached the JavaScript file.

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

Sidebar

Related Questions

I have a site that uses a GET form to allow a user to
I have a Facebook application, my web site uses the C# API to post
Ok, so I have a site that uses the google maps API, and I
We have an ASP.NET application running at a customer site that uses ActiveDirectory for
I have a mobile web application that uses the Javascript SDK to connect to
I have a site that uses the SqlMembershiprovider. Its is a webshop. The user
I have an app that successfully uses Facebook's single sign on to log a
I have a site that uses javascript to launch a css overlay of a
I'm creating a database for a site that uses Facebook connect for user login/profiles.
Our site uses Facebook Connect to allow users to post updates to their Facebook.

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.