如何在 firebaseauth-ui 调用成功并在 facebook 上获得 user_likes 权限后获得 user_likes
How to get user_likes after firebaseauth-ui call is successful with user_likes permission approved on facebook
我正在使用 FirebaseUI for web 处理登录流程。
使用范围(权限)user_likes 调用 Facebook 提供程序。
用户批准应用和权限后,登录成功。
但是,我现在想知道如何通过图形 API 直接调用 facebook 来检索 user_likes。
本质上,从成功的 firebase 身份验证中检索所需参数的位置,以便制作成功的图形 api 检索 user_likes 列表。
您需要从 signInSuccess 回调中获取 facebook 身份验证凭据。然后,您可以使用 OAuth 凭据查询 facebook api:
'callbacks': {
'signInSuccess': function(currentUser, credential, redirectUrl) {
// Do something.
// Return type determines whether we continue the redirect automatically
// or whether we leave that to developer to handle.
// Credential is in credential.accessToken
return false;
}
}
我正在使用 FirebaseUI for web 处理登录流程。 使用范围(权限)user_likes 调用 Facebook 提供程序。 用户批准应用和权限后,登录成功。
但是,我现在想知道如何通过图形 API 直接调用 facebook 来检索 user_likes。 本质上,从成功的 firebase 身份验证中检索所需参数的位置,以便制作成功的图形 api 检索 user_likes 列表。
您需要从 signInSuccess 回调中获取 facebook 身份验证凭据。然后,您可以使用 OAuth 凭据查询 facebook api:
'callbacks': {
'signInSuccess': function(currentUser, credential, redirectUrl) {
// Do something.
// Return type determines whether we continue the redirect automatically
// or whether we leave that to developer to handle.
// Credential is in credential.accessToken
return false;
}
}