Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda