[JS-plugin-FB] FAILS in release mode

Works great in debug but in release mode it throws:

plugin.FacebookAgent.getInstance is not a function

I’ve double checked that this is called:

    sc->addRegisterCallback(register_all_pluginx_protocols);
    sc->addRegisterCallback(register_pluginx_js_extensions);
    SDEBUG(LEVEL_INFO, "app", "FB JS-support ENABLED", "");

The log shows the FB JS-support ENABLED message.
Any hint?

Any hint how could I identify the problem?
I’ve put several log dump messages inside the js_register_pluginx_protocols_FacebookAgent to make sure it is called and it is…

Does anyone have FB plugin working in release mode please? I’m still trying to identify the problem. Thanks!