Example #1
0
 static void  MobInviteAction(IAppInviteResult result)
 {
     if (result.RawResult.Contains("did_complete"))
     {
         act();
     }
 }
Example #2
0
        public void TestSimpleAppInvite()
        {
            IAppInviteResult result = null;

            FB.Mobile.AppInvite(null, null, (r) => result = r);
            Assert.IsNotNull(result);
        }
Example #3
0
    void AppInviteCallback(IAppInviteResult result)
    {
        Debug.Log("_______IAppInviteResult: " + result.Cancelled);

        if (!result.Cancelled)
        {
            Events.ReFillEnergy(1);
        }
    }
Example #4
0
    private void OnInviteFriendCB(IAppInviteResult result)
    {
        bool   isSuccess;
        string message;

        HandleResult(result, out isSuccess, out message);
        if (_onInviteFriendCB != null)
        {
            _onInviteFriendCB(isSuccess, message);
        }
    }
Example #5
0
 private void OnInvite(IAppInviteResult result)
 {
     if (result.Cancelled || !string.IsNullOrEmpty(result.Error))
     {
         Debug.Log("Share Link error " + result.Error);
     }
     else
     {
         Debug.Log(result.ToString());
     }
 }
Example #6
0
 private void InviteCallback(IAppInviteResult result)
 {
     if (string.IsNullOrEmpty(result.Error))
     {
         Debug.Log(result.Error);
     }
     else
     {
         Debug.Log("Successfully Invited");
     }
 }
Example #7
0
 private void AppInviteCallback(IAppInviteResult result)
 {
     if (result.Cancelled || !String.IsNullOrEmpty(result.Error))
     {
         Debug.Log("AppInvite Error: " + result.Error);
     }
     else
     {
         Debug.Log("AppInvite success!");
     }
 }
Example #8
0
 void InviteCallback(IAppInviteResult result)
 {
     if (result.Cancelled)
     {
         Debug.Log("Invite cancelled.");
     }
     else if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log("Error in invite:" + result.Error);
     }
     else
     {
         Debug.Log("Invite was successful:" + result.RawResult);
     }
 }
Example #9
0
 void InviteCallBack(IAppInviteResult result)
 {
     if (result.Cancelled)
     {
         Debug.Log("Invite canceled");
     }
     else if (!String.IsNullOrEmpty(result.Error))
     {
         Debug.Log("Errors on invite!");
     }
     else if (!String.IsNullOrEmpty(result.RawResult))
     {
         Debug.Log("Success on invite!");
     }
 }
Example #10
0
 private void InviteCallBack(IAppInviteResult result)
 {
     Debug.Log(result.RawResult);
     if (result.Cancelled)
     {
         Debug.Log("Invite is Cancelled");
     }
     else if (!string.IsNullOrEmpty(result.Error))
     {
         Debug.Log("Error on Invite");
     }
     else if (!string.IsNullOrEmpty(result.RawResult))
     {
         Debug.Log("Success On Invite");
     }
 }
Example #11
0
 void AppInviteCallback(IAppInviteResult result)
 {
     if (result.Cancelled || !String.IsNullOrEmpty(result.Error))
     {
         if (onAppInviteFail != null)
         {
             onAppInviteFail();
             onAppInviteFail = null;
         }
     }
     else
     {
         if (onAppInviteComplete != null)
         {
             onAppInviteComplete();
             onAppInviteComplete = null;
         }
     }
 }
 private void OnAppInvite(IAppInviteResult result)
 {
     if (result.Cancelled || !string.IsNullOrEmpty(result.Error))
     {
         print("Invite error: " + result.Error);
     }
     else
     {
         print("Invite succeed");
         if (!PlayerPrefs.HasKey("inviteCoinClaimed"))
         {
             txtStatus.text = "You received 10 coins for inviting!";
             PlayerPrefs.SetInt("PlayerGold", PlayerPrefs.GetInt("PlayerGold") + 10);
             PlayerPrefs.SetInt("inviteCoinClaimed", 1);
             sfxCoins.Play();
         }
         else
         {
             txtStatus.text = "Thank you for inviting your friends!";
         }
     }
 }
Example #13
0
    private void AppInviteResult(IAppInviteResult result)
    {
        FB_AppInviteResult res = new FB_AppInviteResult(result.Cancelled, result.RawResult, result.Error, result.ResultDictionary);

        SPFacebook.Instance.AppInviteResultCallback(res);
    }
Example #14
0
 private void AppInviteCallback(IAppInviteResult result)
 {
     throw new NotImplementedException();
 }
Example #15
0
 void HandleResult(IAppInviteResult Result)
 {
     Debug.Log(Result.RawResult);
 }
Example #16
0
 private void AppInviteCallback(IAppInviteResult result)
 {
 }