I am attempting to log the user in to facebook with android (cocos2d-x 2.2.1). All of the java code works great and calls back to my facebook bridge (C++).
I need to be able to create a callback to one of my scenes, but whenever I try to get the static scene it returns null.
In my mainmenuscene I have:
static MainMenuScene *mms
When I come back from JNI, I try MainMenuScene::mms->loginCallback(success), but mms is always null.