Esempio n. 1
0
        public override void Init(
            string appId,
            bool cookie,
            bool logging,
            bool status,
            bool xfbml,
            string channelUrl,
            string authResponse,
            bool frictionlessRequests,
            HideUnityDelegate hideUnityDelegate,
            InitDelegate onInitComplete)
        {
            base.Init(
                appId,
                cookie,
                logging,
                status,
                xfbml,
                channelUrl,
                authResponse,
                frictionlessRequests,
                hideUnityDelegate,
                onInitComplete);

            IOSFacebook.IOSInit(
                appId,
                cookie,
                logging,
                status,
                frictionlessRequests,
                FacebookSettings.IosURLSuffix,
                Constants.UnitySDKUserAgentSuffixLegacy);
        }
Esempio n. 2
0
        public override void Init(
            string appId,
            bool cookie,
            bool logging,
            bool status,
            bool xfbml,
            string channelUrl,
            string authResponse,
            bool frictionlessRequests,
            HideUnityDelegate hideUnityDelegate,
            InitDelegate onInitComplete)
        {
            base.Init(
                appId,
                cookie,
                logging,
                status,
                xfbml,
                channelUrl,
                authResponse,
                frictionlessRequests,
                hideUnityDelegate,
                onInitComplete);

            string unityUserAgentSuffix = string.Format(
                "Unity.{0}",
                Facebook.Unity.FacebookSdkVersion.Build);

            IOSFacebook.IOSInit(
                appId,
                cookie,
                logging,
                status,
                frictionlessRequests,
                FacebookSettings.IosURLSuffix,
                unityUserAgentSuffix);
        }