问题
First after I login facebook via firebase auth as below
let provider = new firebase.auth.FacebookAuthProvider()
firebase.auth().signInWithPopup(provider).then((result)=>{
console.log(result)
})
I found a facebookAccessToken (which I will use for graphAPI) in result
but after I refresh a page , when a page did mount I call a function as below
let currentUser = firebase.auth().currentUser
console.log(currentUser)
I can't found a facebookAccessToken in currentUser
Can I get a facebookAccessToken from a currentUser after sign in facebook via firebase auth ?
来源:https://stackoverflow.com/questions/53336506/can-i-get-a-facebook-access-token-from-firebase-auth-currentuser