getExtraFacebookInfoCallback property
Callback that can be used with the access token to extract additional information from Facebook Graph API.
This callback is invoked during FacebookIdpUtils.fetchAccountDetails, before the system determines if the user is new or returning. It runs on EVERY authentication attempt.
CRITICAL - Do NOT create these models in the callback:
- FacebookAccount - Breaks new account detection
- UserProfile - Interferes with automatic profile creation
- AuthUser - Already handled by the authentication flow
Creating these models will cause the authentication flow in FacebookIdp.login to fail or skip critical steps like user profile creation.
Safe usage: Store data in your own custom tables, linked by
FacebookAccountDetails.userIdentifier. Keep operations lightweight.
Implementation
final GetExtraFacebookInfoCallback? getExtraFacebookInfoCallback;