无法使用(force = true)的Node.js Facebook注销

时间:2019-03-28 12:26:20

标签: facebook hello.js

我正在使用hello.js登录/注销Facebook(通过Vue-cli和Quasar-cli)     我将值“ true”分配给参数“ force”,用户将被注销提供者站点以及本地应用程序,但与提供者的连接保持不变。     相关代码:

- 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 个答案:

没有答案