private IEnumerator OnInit(
InitDelegate onInitComplete,
string appId,
bool cookie = false,
bool logging = true,
bool status = true,
bool xfbml = false,
string channelUrl = "",
string authResponse = null,
bool frictionlessRequests = false,
Facebook.HideUnityDelegate hideUnityDelegate = null)
{
// wait until the native dialogs are loaded
while (fb == null)
{
yield return null;
}
fb.Init(onInitComplete, appId, cookie, logging, status, xfbml, channelUrl, authResponse, frictionlessRequests, hideUnityDelegate);
if (onInitComplete != null)
{
onInitComplete();
}
}