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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:07:23+00:00 2026-06-02T09:07:23+00:00

did Facebook change something in javascript sdk authetication today? I used FB Javascript SDK

  • 0

did Facebook change something in javascript sdk authetication today? I used FB Javascript SDK Authetication written by Mahmud Ahsan, and everything was fine, before today. Now it has problems with FB.logout(). Try to LOG IN his demo and than click LOGOUT button. And try to push this button again to login. It will not response. Firebug says: FB.logout() called without an access token. Maybe someone know how to add access token to FB.logout method or.. have a link to documentation about this changes?

My authetication:

window.fbAsyncInit = function() {
FB.init({ appId: '*************',
    status: true, 
    cookie: true,
    channelUrl: '//localhost/website/channel.html', // Channel File
    xfbml: true,
    oauth: true});

// run once with current status and whenever the status changes
FB.getLoginStatus(updateButton);
FB.Event.subscribe('auth.statusChange', updateButton);
};



var button,userInfo;

function updateButton(response) {
    button       =  document.getElementById('fb-auth');
    userInfo     =   document.getElementById('userInfo');

    if (response.authResponse){

    FB.api('/me', function(info) {
    login(response, info);  //function will just change text on the button..
    });

    button.onclick = function() {
        FB.logout(function(response) {    //here we are, FB.logout method =\
            logout(response);   //function will just change text on the button..
        });
    };
} else {

    button.innerHTML = 'Login';
    button.onclick = function() {
        showLoader(true);
        FB.login(function(response) {
            if (response.authResponse) {
                FB.api('/me', function(info) {
                    login(response, info);
                  });    
            } else {
                //user cancelled login or did not grant authorization

               alert('you are not logged in to facebook or have not granted this app basic permissins. please log in and grand basic permissins to user this application');
            }
        }, {scope:'email,user_birthday,user_about_me'});   
    }
}
}
  • 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-06-02T09:07:27+00:00Added an answer on June 2, 2026 at 9:07 am

    solved! the problem was with FB.event.subscribe. I’m just changed auth.statusChange to another listener – auth.authResponseChange

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

Sidebar

Related Questions

I am using new new Facebook-ios-sdk did everything what is informed in README.mdown. while
Did Facebook just change their iframe size or implement some other breaking change? I
Anyone know how facebook did this: From what I know we cannot change the
I am trying out this example http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/ But I am getting xml error which
Does anybody know how did Facebook do that "time ago". I'm trying to do
I've read several sources now but did not find a solution: I'm using Facebook
I did in my AppDelegate : @interface AppDelegate : UIResponder <UIApplicationDelegate, FBSessionDelegate> { Facebook
How did the 'state' come into GET at facebook auth at http://developers.facebook.com/docs/authentication/ ? At
I am working on integration of django application with facebook and i did almost
Ok, so maybe I'm just going crazy, but did Facebook remove the option to

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.