是否可以将2FA添加到Facebook的Oauth2流中?当尝试在其FB Business Manager帐户上启用了2FA的用户访问图API的见解端点时,将返回以下错误:
"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
}
答案 0 :(得分:2)
我已经见过几次这个问题了,这个问题通常是由启用了双重身份验证的业务管理器引起的,但是进行API调用的用户的帐户没有启用双重身份验证。
在所有情况下,让用户在其帐户上启用两因素身份验证并通过2-fac登录流程解决了用户的问题。