{"record":{"id":"600a71b303f1706c","repo":"Unity-Technologies/UnityCsReference","slug":"facebook-support-was-removed-in-2019-3","errorCode":null,"errorMessage":"Facebook support was removed in 2019.3","messagePattern":"Facebook support was removed in 2019\\.3","errorType":"exception","errorClass":"NotImplementedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsFacebook.bindings.cs","lineNumber":20,"sourceCode":"// Copyright (c) Unity Technologies. For terms of use, see\n// https://unity3d.com/legal/licenses/Unity_Reference_Only_License\n\nusing System;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Collections;\nusing UnityEngine.Bindings;\n\nnamespace UnityEditor\n{\n    public partial class PlayerSettings : UnityEngine.Object\n    {\n        [Obsolete(\"Facebook support was removed in 2019.3\", true)]\n        public partial class Facebook\n        {\n            public static string sdkVersion\n            {\n                get { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n                set { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n            }\n\n            public static string appId\n            {\n                get { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n                set { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n            }\n\n            public static bool useCookies\n            {\n                get { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n                set { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }\n            }\n\n            internal static bool useLogging\n            {\n                get { throw new NotImplementedException(\"Facebook support was removed in 2019.3\"); }","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsFacebook.bindings.cs#L2-L38","documentation":"Thrown by every property accessor in PlayerSettings.Facebook (sdkVersion, appId, useCookies, etc.) because the entire Facebook platform class is marked [Obsolete(..., true)] — meaning it is a compile-time error to reference it, and at runtime all members throw NotImplementedException. Facebook platform support was removed from Unity in version 2019.3 and this stub class remains solely for API surface compatibility.","triggerScenarios":"Any access to PlayerSettings.Facebook.* properties (sdkVersion, appId, useCookies, etc.) at runtime. Due to the Obsolete attribute with error=true, this is also a compile error in modern Unity — the runtime throw exists as a fallback for pre-compiled assemblies that still reference the type.","commonSituations":"Legacy project upgrading from Unity 2019.2 or earlier that references PlayerSettings.Facebook; pre-compiled plugins or assets that were built against an old Unity API surface; automated tooling or build scripts that enumerate all platform settings without filtering removed platforms.","solutions":["Remove all references to PlayerSettings.Facebook from your code and assets — Facebook is no longer a supported build target.","If you need Facebook integration, use the Facebook SDK for Unity which operates at the application level, not the platform settings level.","For pre-compiled assemblies referencing the type, recompile them against your current Unity version or request an updated version from the asset publisher."],"exampleFix":"// before\nvar sdk = PlayerSettings.Facebook.sdkVersion;\n\n// after\n// Remove the call entirely — Facebook platform support was removed in Unity 2019.3.","handlingStrategy":"validation","validationCode":"// This class is obsolete and throws on all access. Remove all references:\n// var sdk = PlayerSettings.Facebook.sdkVersion; // REMOVETHIS\n// If Facebook integration is needed, use the Facebook SDK for Unity instead.","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Remove all references to PlayerSettings.Facebook — it was removed in Unity 2019.3.","Use the Facebook SDK for Unity for Facebook integration at the application level.","Recompile pre-compiled assemblies that reference the obsolete type against your current Unity version."],"tags":["unity-editor","facebook","obsolete","not-implemented","removed-feature","version-migration"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}