You can generate an account recovery token and store it with a partner recovery provider.

  1. Sign in to your Facebook account, then return to GitHub.
  2. In the upper-right corner of any page, click your profile photo, then click Settings. Settings icon in the user bar
  3. In the user settings sidebar, click Security. Security settings sidebar

  4. To generate a new token, under "Recovery tokens," click Store new token. Button for storing a new recovery token

  5. Read the information about account recovery tokens, then click Connect with Button for connecting a recovery token with Facebook
  6. 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.) Facebook page with button for turning on account recovery