private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { print("Sharelink error: " + result.Error); } else if (!string.IsNullOrEmpty(result.PostId)) { print(result.PostId); } else { print("Share succeed"); if (!PlayerPrefs.HasKey("shareCoinClaimed")) { txtStatus.text = "You received 10 coins for sharing!"; PlayerPrefs.SetInt("PlayerGold", PlayerPrefs.GetInt("PlayerGold") + 10); PlayerPrefs.SetInt("shareCoinClaimed", 1); sfxCoins.Play(); } else { txtStatus.text = "Thank you for sharing with your friends!"; } } }
void ShareMessengerCallback(IShareResult result) { FacebookHelperResultType resultType = FacebookHelperResultType.ERROR; if (result != null) { if (result.Error == null || result.Error == "") { var responseObject = Json.Deserialize(result.RawResult) as Dictionary <string, object>; object obj = 0; if (responseObject.TryGetValue("cancelled", out obj)) { resultType = FacebookHelperResultType.CANCELLED; } else if (responseObject.TryGetValue("id", out obj)) { resultType = FacebookHelperResultType.OK; if (doneCallback != null) { doneCallback(); } } } } }
public void SimpleFeedShare() { IShareResult result = null; FB.FeedShare(link: new Uri("https://www.facebook.com"), callback: (r) => (result = r)); Assert.IsNotNull(result); }
private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error " + result.Error); } }
void OnFeedPostComplete(IShareResult result) { if (OnPostToWall != null) { OnPostToWall(DeserializeFBResult(result.RawResult)); } }
private void SharePointsCallBack(IShareResult result) { if (result.Error != null || result.Cancelled) { StartCoroutine(this.GetComponent <MenuManagerScript>().ToggleInfoPanel("Something went wrong while posting... :(", true)); } }
private void ShareLinkCallback(IShareResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); if (onShareLinkFail != null) { onShareLinkFail(); } } else if (!String.IsNullOrEmpty(result.PostId)) { // Print post identifier of the shared content Debug.Log("ShareLink success with postID!"); if (onShareLinkComplete != null) { onShareLinkComplete(); } Debug.Log(result.PostId); } else { // Share succeeded without postID if (onShareLinkComplete != null) { onShareLinkComplete(); } Debug.Log("ShareLink success without postID!"); } }
static void ShareAction(IShareResult result) { if (!result.Cancelled && act != null) { act(); } }
private void ShareCallback(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); } else if (!string.IsNullOrEmpty(result.PostId)) { // Print post identifier of the shared content Debug.Log(result.PostId); } else { // Share succeeded without postID Debug.Log("ShareLink success!"); } switch (MainController.single.gameState) { case MainController.GameState.DestroyCity: LevelControl.shareStatus = ShareStatus.Recieved; break; case MainController.GameState.PhoneCamera: PhoneImageController.shareStatus = ShareStatus.Recieved; break; default: break; } }
public void Compartido(IShareResult fd) { if (!fd.Cancelled) { DataManager.Instance.GuardarDatos((byte?)(DataManager.Instance.getVidasRestantes() + 2), null); DataManager.Instance.CargarDatos(); } }
private static void ShareCallback (IShareResult result) { Debug.Log("ShareCallback"); if (result.Error != null) { Debug.LogError(result.Error); return; } Debug.Log(result.RawResult); }
private static void ShareCallback(IShareResult result) { Debug.Log("ShareCallback"); if (result.Error != null) { Debug.LogError(result.Error); return; } Debug.Log(result.RawResult); }
private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { } else { AchievementsManager.Instance.CheckAchievements(TasksTypes.Share); } }
private void ShareLinkCallback(IShareResult result) { if (result.Cancelled) { Debug.Log("Share cancelled"); } else { Debug.Log("Share successfully"); } }
private void ShareCallback(IShareResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { AnalyticsManager.SharedToFacebook(false); } else { AnalyticsManager.SharedToFacebook(true); } }
public void ShareCallBack(IShareResult result) { if (result.Cancelled) { Debug.Log("User Cancelled"); } else { Debug.Log("Link Shared"); } }
private void OnShareCB(IShareResult result) { bool isSuccess; string message; HandleResult(result, out isSuccess, out message); if (_onShareCB != null) { _onShareCB(isSuccess, message); } }
private void ShareCallback(IShareResult shareResult) { if (shareResult.Cancelled) { Debug.LogError("User Cancelled"); } else { Debug.Log("Share successfully"); } }
private void PostOnFBCallback(IShareResult result) { if (string.IsNullOrEmpty(result.Error) && !result.Cancelled) { SetInfoText("Story Posted Successfully!"); } else { SetInfoText("Error Occured!"); } }
void SharingDone(IShareResult result) { if (result.Cancelled || result.Error != null) { return; } MngmntGameHandler.instance.Tasso.TakeProfit((uint)sharingReward); DateTime newDate = DateTime.Now; string newStringDate = Convert.ToString(newDate); PlayerPrefs.SetString("PlayDate", newStringDate); }
private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { ShareText.text = "Error Sharing :("; } else { charController.SuccesfulShareUnlock(); ShareText.text = "Success"; } }
private static void OnPost(IShareResult result) { if (Service.GameIdleController != null) { Service.GameIdleController.Enabled = true; } if (FacebookManager.OnPostCallback != null) { FacebookManager.OnPostCallback(result); FacebookManager.OnPostCallback = null; } }
public void SimpleLinkShare() { IShareResult result = null; FB.ShareLink( new Uri("http://www.test.com/"), "test title", "test description", new Uri("http://www.photo.com/"), (r) => (result = r)); Assert.IsNotNull(result); }
private void FeedCallback(IShareResult result) { if (result.Error == null && result.Cancelled == false) { UnityAndroidExtras.instance.makeToast("Thank you! Your lives are now replenished!", 1); gameController.FillMaxLives(); } else if (result.Error != null) { UnityAndroidExtras.instance.makeToast("Sorry! An error has occurred!", 1); } }
// Callback from sharing google play store link. private void ShareCallBackProcess(IShareResult result) { if (!String.IsNullOrEmpty(result.PostId)) { // Print post identifier of the shared content. Cus.LogAMessage("[Facebook SDK]: Successfully Shared a Link, post id: \n" + result.PostId); } else { // Share succeeded without postID. Cus.LogAMessage("[Facebook SDK]: Failed to Share a Link, because: \n" + result.Error); } }
public void SharePhotoWithTexture2D() { IShareResult result = null; FB.SharePhoto( Texture2D.blackTexture, callback: (r) => { result = r; }); Assert.IsNotNull(result); FacebookLogger.Log(result.RawResult); }
private void ShareCallback(IShareResult result) { if (result.Cancelled || result.Error != null) { Debug.Log("ShareLink Error: " + result.Error); } else if (result.PostId != null) { Debug.Log(result.PostId); } else { Debug.Log("ShareLink success!"); } }
private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("sharing error: " + result.Error); } else if (!string.IsNullOrEmpty(result.PostId)) { Debug.Log(result.PostId); } else { Debug.Log("Share sucessfull"); } }
private void ShareCallback(IShareResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); } else if (!String.IsNullOrEmpty(result.PostId)) { Debug.Log(result.PostId); } else { Debug.Log("ShareLink success!"); } }
void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); } else if (!string.IsNullOrEmpty(result.Error)) { Debug.Log(result.PostId); } else { Debug.Log("Share complete"); } }
private void OnShare(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink error " + result.Error); } else if (!string.IsNullOrEmpty(result.PostId)) { Debug.Log(result.PostId); } else { Debug.Log("Share succeed"); } }
private void PostCallback(IShareResult result) { FB_PostResult res = new FB_PostResult(result.RawResult, result.Error); SPFacebook.Instance.PostCallback(res); }
public void FeedCallback(IShareResult result) { Debug.Log(result.RawResult); }
private void ShareCallback(IShareResult result) { if (result.Cancelled || !string.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); } else if (!string.IsNullOrEmpty(result.PostId)) { // Print post identifier of the shared content Debug.Log(result.PostId); } else { // Share succeeded without postID Debug.Log("ShareLink success!"); } }
private void ShareCallback(IShareResult result) { if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) { Debug.Log("ShareLink Error: " + result.Error); } else { // Share succeeded without postID Debug.Log("ShareLink success!"); } }
void FeedCallback(IShareResult result){ Debug.Log("Worked"); }
private void ShareCallback(IShareResult result) { Application.CaptureScreenshot ("HighScore.png"); if (result.Cancelled || !String.IsNullOrEmpty (result.Error)) { Debug.Log ("ShareLink Error: " + result.Error); } else if (!String.IsNullOrEmpty (result.PostId)) { // Print post identifier of the shared content Debug.Log (result.PostId); } else { // Share succeeded without postID Debug.Log ("ShareLink success!"); } }