I have this code:
m_FacebookVersion = Facebook.Unity.FacebookSdkVersion.Build;
To get the version of Facebook, but I run into problems when Facebook doesn't exist. I can't find a Define to check against i.e. #if UNITY_EDITOR.
I also tried
Type myType = Type.GetType("Facebook.Unity.FacebookSdkVersion");
But myType returns null.
Any suggestions?
Thanks