Can I get a facebook access token from firebase.auth().currentUser?

安稳与你 提交于 2021-02-11 12:15:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!