'Webpage not available' on the webpage at fbconnect://success#//state=

Hi I’m able to automate Facebook oauth authentication integration with our app. We launch Facebook login in a webview control, however, immediately after the successful login to Facebook, when I continue I get this error in the webview.

“Webpage not available”
The webpage at 'fbconnect://success#state=%7B%220_auth_logger_1273-4d9d-8169-4b… could not be loaded because:

net:ERR_UNKNOWN_URL_SCHEME.

The weird thing is this only happens when I run the automated test when the app is launched by Appium. If I do this test manually using the Facebook test user (graphapi) it works (no facebook app on the emulator). Do I need to open some port or configuration setting for Appium to allow this url scheme?

Thanks!
Brian

Webpage fb conect sussesful