Facebook Accountkit api 使用 ionicframework 2 时出错 - api 版本不受支持 TAAL[BLAME_func,invariant_violation] TAAL[BLAME_file])

Facebook Accountkit api error using ionicframework 2 - The api version is not supported TAAL[BLAME_func,invariant_violation] TAAL[BLAME_file])

我正在尝试使用 javascript 实现 facebook accountkit。我遵循了 https://developers.facebook.com/docs/accountkit/web/integrating 上的文档。 我用的是 ionic 2。

实施 Account Kit Javascript SDK,Accountkit.init 工作正常。但是当我调用方法 AccountKit.login 时,错误弹出。

错误显示

The api version is not supported TAAL[BLAME_func,invariant_violation] TAAL[BLAME_file]

重定向的弹窗URL地址是这样的。

https://www.accountkit.com/v2.6/dialog/sms_login/?app_id={{facebook_app_id}}&country_code={{countryCode}}&locale=ko_KR&logging_ref=f288b0578b6851&origin=http%3A%2F%2Flocalhost%3A8100&phone_number={{phoneNumber}}&sdk=web&state=csrf&version=v2.6

为什么会出现这个错误? 我阅读了所有 facebook accountkit 文档,但我找不到。

尝试使用 v1.0。我遇到了同样的错误,但 v1.0 回退对我有用。