title: How to use Facebook OAuth2 with 2FA
body: <p>Is there a way to add 2FA to Facebook's Oauth2 flow?  The following error is returned when trying to hit the graph API's insights endpoint for a user that has 2FA enabled on their FB Business Manager account:</p>
  
  <pre><code>"error": {
      "fbtrace_id": "HrY8K9KfT4U",
      "error_user_msg": "Unknown error",
      "message": "Two factor authentication required. User have to enter a code from SMS or TOTP code generator to pass 2fac. This could happen when accessing a 2fac-protected asset like a page that is owned by a 2fac-protected business manager.",
      "error_subcode": 1404120,
      "type": "OAuthException",
      "error_user_title": "Ask user to pass two factor authentication",
      "is_transient": false,
      "code": 415
    }
  </code></pre>