Ok, I found out. I tried setting up a custom gender in a test account.
Possible values remain only "male" and "female". When you select a custom gender, and then enter one of the custom gender groups, that is, the field next to the bottom using the option - Which pronoun do you prefer?

Here, depending on what you choose, the gender field returns “male” or “female”, regardless of what you type in “Gender”. However, if you select "Neutral", then the Graph API does not have a "gender" field in it.
Applegrew
source share