Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!