Node.js Facebook Logout with (force = true) not working

96 Views Asked by At

I'm using hello.js to login/logout facebook (wiht Vue-cli and Quasar-cli) I assign the value "true" to the parameter "force" to the user will be logged out of the provider site as well as the local application, but the connection to the provider keeps on. Relevant code:

- hello.js:

import hello from 'hellojs'
export default ({ Vue }) => {
    hello.init({
        facebook: '123412341234123'
    })
    Vue.prototype.$hello = hello
}


- logout.vue

  ...

<q-btn
    color="primary" glossy push class="full-width"
    icon="fab fa-facebook-f" label="Terminar sessão"
    size="md" @click="logout_auth('facebook')" >
</q-btn>

...

logout (network) {
    this.$hello.logout(network, true).then(function (json) {
        var obj = JSON.stringify(json)
        console.log('logout OK: ' + obj)
    }, function (e) {
    console.log('logout error: ' + e.error.message)
    })
}


any help will be appreciated.
0

There are 0 best solutions below