You can generate an account recovery token and store it with a partner recovery provider.
- Sign in to your Facebook account, then return to GitHub.
- In the upper-right corner of any page, click your profile photo, then click Settings.
In the user settings sidebar, click Security.

To generate a new token, under "Recovery tokens," click Store new token.

- Read the information about account recovery tokens, then click Connect with https://www.facebook.com.
- After you're redirected to Facebook, read the information about turning on account recovery with Facebook before you click Save as [YOUR NAME]. (If you save multiple tokens within a short period of time, Facebook may skip this confirmation step after you save your first token.)