웹용 FirebaseUI로 로그인 흐름을 작업 중입니다. Facebook 공급자는 scope (permission) user_likes로 호출됩니다. 사용자가 앱 및 권한을 승인하면 로그인이 성공합니다.
그러나 이제 Facebook에 대한 그래프 API 호출을 통해 user_likes를 검색하는 방법이 궁금합니다. 본질적으로 user_likes 목록을 검색하는 성공적인 그래프 API를 만들기 위해 성공적인 firebase 인증에서 필요한 매개 변수를 검색 할 위치입니다.
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;
}
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다