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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:00:53+00:00 2026-05-27T03:00:53+00:00

I am working on a django website which also allows users to sign in

  • 0

I am working on a django website which also allows users to sign in using their Facebook account. The login works fine, however I am not able to logout using Internet Explorer. The code seems to work fine on Firefox and Chrome.

Heres the code

function logoutFBUser()
{
    //logout user from website and Facebook and reload 
    alert ("called FB logout");
    if (FB.getAuthResponse()) 
    {
        alert ("has auth response");
        FB.logout(function(response) 
        {
            window.location.href = '/accounts/logout?next=/';
        });
        alert ("logged out of FB and redirected");
    }
    else 
    {
        alert(" no auth response");
        window.location.href = '/accounts/logout?next=/';
    }
}

In Firefox, I get the alert of has auth response, however in IE, I get the alert no auth response. If I only use FB.logout without FB.getAuthResponse then the function hangs when it hits FB.logout.

What am I 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-27T03:00:54+00:00Added an answer on May 27, 2026 at 3:00 am

    Finally solved this. I debugged into the javascript for FB.logout and for some reason it doesnt have the access_token which is why the call to FB.logout fails. Researching the Facebook documentation led me to this URL which I used for the logout process on my website successfully

    Logoutlink from Facebook Documentation

    https://www.facebook.com/logout.php?next=REDIRECT_URI&access_token=LOGGEDINUSER_ACCESS_TOKEN

    Needless to say, I am using this on the serverside, so no need to use javascript any more.
    Please refer Facebook Authentication documentation for more information.

    http://developers.facebook.com/docs/authentication/

    Thanks for all the help

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

Sidebar

Related Questions

I am working on a Django application which allows a user to upload files.
I'm using django and when users go to www.website.com/ I want to point them
I'm working on a website which uses Django templates, and I have to produce
I am working on creating a website in Django which consists of two parts:
I'm working on a soccer league management website using Django. Among others, I have
I am working in Django.I am trying to connect my website to Facebook. What
We have django 1.1.1 website, that works fine on development server (python manage.py runserver).
I'm working in Django, and using urllib2 and simplejson to parse some information from
I'm working on a django app right and I'm using cherrypy as the server.
My website, which was working before, suddenly started breaking with the error ImproperlyConfigured at

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.