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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:23:28+00:00 2026-05-27T15:23:28+00:00

Facebook authentication is working great. I can pull the profile pic and name of

  • 0

Facebook authentication is working great. I can pull the profile pic and name of the user. However, when you click login and the facebook prompt comes up I have two problems (in both IE and Chrome).

First off, the window never closes. It just goes to a blank white page. This is actually happening to me across the web. turntable.fm logins do this as well as any fb connected sites I can think of. it happens to me at work, at home on multiple different PCs. Is fb broken? I can’t help but think this is related to the other issue…

My page doesn’t refresh after I close the (blank) login popup.

So those are the issues. I tried subscribing to the auth.login event and calling a reload() there, which is what the documentation recommends, but this didn’t refresh when you logged in. It also caused a problem where if you logged out it would just automatically log you back in. That’s why I added the code below to detect a logout and reload. That actually works. So how can I make it reload when the popup window is closed, or even better, make the popup window close itself and reload my page?!

all relevant fb code below (I think):

        window.fbAsyncInit = function () {
            FB.init({
                appId: '123456', // App ID
                channelURL: 'http://www.mydomain.net/channel.html', // Channel File
                status: true, // check login status
                cookie: true, // enable cookies to allow the server to access the session
                oauth: true, // enable OAuth 2.0
                xfbml: true  // parse XFBML
            });

            //update guest/username if logged in or not
            FB.getLoginStatus(function (response) {
                if (response.authResponse) {
                    FB.api('/me', function (response) {
                        $('#UserMenu').show();
                        $('#Login').hide();
                        $('#fbpic').html('<img alt="Account Picture" src="https://graph.facebook.com/' + response.username + '/picture" />');
                        $('#AccountName').html(response.name);
                        getVentID(response.id, response.name);
                        $('#Logout').show();
                    });
                } else {
                    //not logged in to facebook
                }
            });

            $('#Logout').live('click', function () {
                FB.logout(function (response) {
                    // user is now logged out
                    window.location.reload();
                });
            });

            //subscribe to login changes
            FB.Event.subscribe('auth.login', function (response) {

            });
        };

        // Load the SDK Asynchronously
        (function (d) {
            var js, id = 'facebook-jssdk'; if (d.getElementById(id)) { return; }
            js = d.createElement('script'); js.id = id; js.async = true;
            js.src = "//connect.facebook.net/en_US/all.js";
            d.getElementsByTagName('head')[0].appendChild(js);
        } (document));
  • 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-27T15:23:29+00:00Added an answer on May 27, 2026 at 3:23 pm

    This was because I had Facebook “installed” in Chrome! Uninstall and now it works everywhere. SOOO happy!

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

Sidebar

Related Questions

My facebook login-button has been working great: <fb:login-button length=long background=light perms=email size=medium onlogin=myLoginCode()></fb:login-button> After
I'm trying to integrate facebook login on a site I'm working on, but so
I'm working on a site that is using Facebook authentication and friends, but I'm
I wrote a facebook application but authentication is not working properly. Despite of googling
Recently I'm working with the Graph API of facebook and I got the authentication
I'm working on a project which will use facebook authentication completely (no custom authentication
Under Django 1.1.1, I am using several authentication backends such as social-registration for facebook
Facebook Connect seems like the cool new way to leverage a user's Facebook account
Facebook API: How to let the php knows whether the user is a fan
In Facebook's Compose Message, each name that appears in the TO field uses a

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.