When the GAM Facebook Authentication is used, you can retrieve the user's email when they register. That is, when they log into the application for the first time using their Facebook account.
To get the user's email when they log in using Facebook Authentication Type, you just need to add the "email" in the Additional Scope to the Authentication Type configuration, as shown below:
When using the GAM API, the code is as follows:
Is a variable based on GAMAuthenticationTypeFacebook external object - distributed by GeneXus Access Manager.
Then, the user's email in GAM will be the same email that is configured in the Facebook account.
Note: Once the user has logged in for the first time, the email address won't be updated or changed when logging in again.