Sdkbox-facebook (c++) (cocos2d-x v3.x)

Hi, i’ve followed all the steps needed and there are no errors.
However, when i try to redirect the user automatically after checking for login. It just shows a blank screen. Cant seem to find out the problem.

code is as follows:

//check if already login
if (sdkbox::PluginFacebook::isLoggedIn())
{
std::cout<<"\n\n\nshotuing"<<sdkbox::PluginFacebook::getUserID();
Director::getInstance()->replaceScene(IntroScene::createScene());
}

When are you doing the Login check?