void FacebookAgent::appRequest(FBInfo& info, FBCallback cb) { auto sharePlugin = agentManager->getSharePlugin(); sharePlugin->setCallback(cb); PluginParam params(info); sharePlugin->callFuncWithParam("appRequest", ¶ms, NULL); }
void FacebookAgent::login(std::string& permissions, FBCallback cb) { auto userPlugin = agentManager->getUserPlugin(); userPlugin->setCallback(cb); PluginParam _permissions(permissions.c_str()); userPlugin->callFuncWithParam("login", &_permissions, NULL); }
void AdsObject::preloadAds(AdsType adsType, int idx) { PluginParam paramAdsType(adsType); PluginParam paramIdx(idx); callFuncWithParam("preloadAds",¶mAdsType,¶mIdx,NULL); }