Has anyone successfully utilized the Facebook SDK with Unity? I am trying to use the Facebook Login feature with my game developed in Unity but I get a bunch of errors after my build specfically to WebGL. In the Unity editor, everything works fine, I can login to Facebook through my game but after I build I get errors and thats the main issue. The main error i get is “You need to call FB,Init() with AppId first.” and is attached below. However I set my AppID in the Unity editor and FB.Init does not accept an AppID as an argument…my code for FB.Init :

void Start()
{
FB.Init(InitCallback);
}
private void InitCallback()
{
if (FB.IsInitialized)
{
// Signal an app activation App Event
FB.ActivateApp();
// Continue with Facebook SDK
// ...
}
else
{
Debug.Log("Failed to Initialize the Facebook SDK");
}
}
public void FBLogin()
{
if (!FB.IsLoggedIn)
{
FB.LogInWithReadPermissions(perms, AuthCallback);
}
}