Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

198
Visualizações
Is it possible to delete facebook permission, after login prompt?

I have continue with facebook button in the user's profile page. that opens facebook's permission page and saves facebook user ID to our DB, that makes a pair with his account.

Now I want to makedisconnect button that sends permission delete requests to facebook and delete entry from our DB.

I used FB.Event.subscribe('auth.authResponseChange', event); listener but the authResponse doesn't change when the user logs off from FB, on the other web browser tab.

if(fb_status === "connected" && fb_userID.length > 0){
        removeFbUser(fb_userID); // deletion in DB
    }else if (fb_status === 'not_authorized'){
        //error message
    }else{
       // user is logged out
       FB.login(function(response) {
            if(response.status === "connected"){
                removeFbUser(response.authResponse.userID);
                fb_userID = response.authResponse.userID;      
            }else{
                // error
            }   
            fb_status = response.status;
        });
    }

I'm also getting this error message from facebook sdk :

You are overriding current access token, that means some other app is expecting different access token and you will probably break things. Please consider passing access_token directly to API parameters instead of overriding the global settings.

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda