UI elements that created inside FBAPI callback functions displayed as a black box

Is there a way to wait for FBAPI function done excuting so i can create UI element in the main thread?
Thank you!

Sounds like a bug, we’ll look into it
At the meantime, can you wrap your code inside this block

    cocos2d::Director::getInstance()->getScheduler()->performFunctionInCocosThread([=](){
        <Your ui logic here>
    });