OAuthError when logging in through Facebook

Hi, I’m trying to build a prototype using okta signin widget. I turned on idp Facebook, but when I click on the Facebook button, I get: “OAuthError: The authorization server encountered an unexpected condition that prevented it from fulfilling the request.”. Here’s the network traffic:
step1:
https://{{my-okta-domain}}/oauth2/v1/authorize?client_id={{client-id}}&code_challenge=dQ8R8GD3dThpBjmwQ52BueGiww71b1juCCbiJh0hsxM&code_challenge_method=S256&idp={{FB-idp-id}}&nonce=94LNhR5pDKTFr50oWoWaHMeh7v29ERAWLhx4gzzFd4Ve8sN92tghrqq7uQ1t7MA5&redirect_uri=http://localhost:3000/implicit/callback&response_mode=fragment&response_type=code&state=Na8r90z2crOsLCRxE4PnrUaWotHSzpbgPDnesjeY6t4Wva3jufhTHClpECJs95X6&scope=openid email profile address phone

step2:
https://www.facebook.com/dialog/oauth?state=UHVwajVQUkJTQ1NiNzJVSnd2Vnk1OHJOb0JneThKVWhjT2ZtaTRESVZGS0tnTzNvQ3QrVVNCSDU2ZU1VVWxhbQ&client_id={{FB-app-client-id}}&response_type=code&login_hint&display=page&redirect_uri=https://{{my-okta-domain}}/oauth2/v1/authorize/callback&scope=public_profile%20email

step 3:
https://{{my-okta-domain}}/oauth2/v1/authorize/callback?code=AQDTCuNfNU-0CzCu94kfJCTHxrqKTm8JIokhDohK7DD9Puw_f9YK-yjKeZ-_VNGhpKxZVLq6Dg1RwAIUIYH_0h1KUmLQjwF8FU0sLSJWXC3YuPF6Joyc_iCmgfCZSRwrGOPt5gGIdNrOLhStZMF7a2VR6NQFj59ci3C7Z29DlgNzi_sNrZqKsSAYtgByvwEtfKaww91NVRWnbclgwx9n3GtIetpKLGKCPhSEUoRr9lqVyCoyS0pf2VIoohs1oGexettWkVfQlmZndiOYtLSjLsw1FHJr4sa5X_QL2v2hDYCXdjF2_E0Dvx4MB7IiJSR7y1Y&state=UHVwajVQUkJTQ1NiNzJVSnd2Vnk1OHJOb0JneThKVWhjT2ZtaTRESVZGS0tnTzNvQ3QrVVNCSDU2ZU1VVWxhbQ

step 4:
http://localhost:3000/implicit/callback

Notice that the first 3 steps went ok, however step 4 is not getting any token back. There’s no error in console and network traffic, only one generic OAuthError message printed on the screen.

Hi @hliang

Can you please open a support case regarding this error through an email to developers@okta.com? It seems that there is a misconfiguration either on Okta side or on Facebook side which prevents Okta from generating the tokens successfully.

Thank you. I emailed developers@okta.com regarding this issue last week, but haven’t heard back yet.

Hi @hliang

Thank you for letting me know. The email was blocked for some reason, but I’ve unblocked it now and one of our Developer Support Engineers will reach back to you on US working hours.