Android Device - Facebook LogOut

Hello There
I’ve come across a problem on real android devices when log-ing out of Facebook.
When using a android emulator , or a real iOs devices, after log out , the facebook user/password modal show up just fine, and I can switch between users, but on a real android device it just logins directly .

This is a snippet of my code

import { Facebook, FacebookLoginResponse } from '@ionic-native/facebook';
constructor(private http: Http, private storage: Storage, private fb: Facebook)
logout() {
    this.fb.getLoginStatus().then( data=>{
        if (data.status =='connected'){
          this.fb.logout()
        }
      }
    )
    return this.http.get(this.logoutUrl);
  }

Sorry if this has been answered or is a duplicate , i couldn’t find any relevant information so far

Some info about the plugins versions

"@angular/common": "4.1.2",
 "@ionic-native/core": "3.10.2",
"cordova-android": "^6.2.3",
"ionic-angular": "3.3.0",
"@ionic-native/facebook": "^3.12.1",
"cordova-plugin-facebook4": "^1.9.1",

Turns out everything worked just fine , i was already logged in the facebook app and it used the credentials from there. :expressionless:

2 Likes

Could you please tell me why you need the logout url from this line?

return this.http.get(this.logoutUrl);

And how are you getting it?