public void Share() { if (!FB.IsLoggedIn) { loginForSharing = true; LoginEnable = true; Debug.Log("not logged, logging"); } else { //2.1.4 FB.FeedShare( link: new Uri("https://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" + (FB.IsLoggedIn ? AccessToken.CurrentAccessToken.UserId : "guest")), linkName: "Jelly Garden", linkCaption: "I've got " + LevelManager.Score + " scores! Try to beat me!" //picture: "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCzlvjob906zmGv&w=128&h=128&url=https%3A%2F%2Ffbcdn-photos-h-a.akamaihd.net%2Fhphotos-ak-xtp1%2Ft39.2081-0%2F11891368_513258735497916_1832270581_n.png&cfs=1" ); // var path = LevelManager.THIS.androidSharingPath; // if (Application.platform == RuntimePlatform.IPhonePlayer) // path = LevelManager.THIS.iosSharingPath; // FB.FeedShare("", // new Uri(path), // "Juice Fresh", // "I just scored " + LevelManager.Score + " points! Try to beat me!", // "Juice Fresh", // new Uri("http://candy-smith.com/wp-content/uploads/2017/02/Juice-Fresh_mini.png")); } }
public void Share() { highScore = PlayerPrefs.GetInt("HighScore"); int currentScore2 = score; if (currentScore2 > highScore) { ScoreText = "I just made a New high score of " + PlayerPrefs.GetInt("HighScore") + " !"; } else if (currentScore2 == highScore) { ScoreText = "So Close ! Almost beat my own highscore of " + PlayerPrefs.GetInt("HighScore") + " !"; } else if (currentScore2 > 0) { ScoreText = "I just scored " + currentScore2 + " and my high score is " + PlayerPrefs.GetInt("HighScore") + " !"; } else { ScoreText = "My high score is " + PlayerPrefs.GetInt("HighScore") + " ! Try and beat me !"; } FB.FeedShare( string.Empty, new Uri("http://mrrichthega.me/"), ScoreText, "Download this game and beat my highscore !", "Help Mr.Rich gain his wealth now", new Uri("http://i.imgur.com/NiJpVsU.jpg"), string.Empty, ShareCallback ); }
public void FeedShare(string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, Action <bool> callback = null) { if (!FB.IsInitialized) { if (callback != null) { callback(false); return; } } FB.FeedShare(toId, link, linkName, linkCaption, linkDescription, picture, mediaSource, (result) => { if (string.IsNullOrEmpty(result.Error)) { if (callback != null) { callback(true); } } else { Log.e("FeedShare Context 2 FB Error:" + result.Error); if (callback != null) { callback(false); } } }); }
public void SimpleFeedShare() { IShareResult result = null; FB.FeedShare(link: new Uri("https://www.facebook.com"), callback: (r) => (result = r)); Assert.IsNotNull(result); }
//void DealWithAppLink(IAppLinkResult result) // { // if(!String.IsNullOrEmpty(result.Url)) // { // AppLinkURL = result.Url; // } // } public void Share() { // FB.FeedShare( // string.Empty, // new Uri("http://www.meridianpeakhypnosis.com/wp-content/uploads/2014/02/money-addiction.jpg"), // "I'M RICH", // "I bought app for 400 dollars, just becouse I can afford it", // "Want to share that you are rich? -buy an app", // new Uri("http://www.meridianpeakhypnosis.com/wp-content/uploads/2014/02/money-addiction.jpg"), // string.Empty, // ShareCallback // ); // FB.ShareLink( // new Uri("http://www.meridianpeakhypnosis.com/wp-content/uploads/2014/02/money-addiction.jpg"), // callback: ShareCallback // ); FB.FeedShare( string.Empty, new Uri("https://4.bp.blogspot.com/-g6t9uH8_ics/WlZTdiMpALI/AAAAAAAAA5Q/idLR9tdmfKM6yI7YdmY2H9LzCTq0k_7JQCLcBGAs/s320/app%2Bim%2Brich%2Bfin.jpg"), "I'M RICH, I bought app for 400 dollars, just becouse I can afford it", "https://4.bp.blogspot.com/-g6t9uH8_ics/WlZTdiMpALI/AAAAAAAAA5Q/idLR9tdmfKM6yI7YdmY2H9LzCTq0k_7JQCLcBGAs/s320/app%2Bim%2Brich%2Bfin.jpg", callback: ShareCallback ); }
public void Share() { if (!FB.IsLoggedIn) { loginForSharing = true; LoginEnable = true; Debug.Log("not logged, logging"); } else { //2.1.4 var path = LevelManager.THIS.androidSharingPath; if (Application.platform == RuntimePlatform.IPhonePlayer) { path = LevelManager.THIS.iosSharingPath; } FB.FeedShare("", new Uri(path), "Juice Fresh", "I just scored " + LevelManager.Score + " points! Try to beat me!", "Juice Fresh", new Uri("http://candy-smith.com/wp-content/uploads/2017/02/Juice-Fresh_mini.png")); } }
/// <summary> /// See docs in <see cref="SoomlaProfile.UpdateStoryDialog"/> /// </summary> /// <param name="name">The name (title) of the story.</param> /// <param name="caption">A caption.</param> /// <param name="link">A link to a web page.</param> /// <param name="pictureUrl">A link to an image on the web.</param> /// <param name="success">Callback function that is called if the story update was successful.</param> /// <param name="fail">Callback function that is called if the story update failed.</param> /// <param name="cancel">Callback function that is called if the story update was cancelled.</param> public override void UpdateStoryDialog(string name, string caption, string description, string link, string picture, SocialActionSuccess success, SocialActionFailed fail, SocialActionCancel cancel) { FB.FeedShare( link: new Uri(link), linkName: name, linkCaption: caption, linkDescription: description, picture: new Uri(picture), callback: (IShareResult result) => { if (result.Error != null) { fail(result.Error); } else { SoomlaUtils.LogDebug(TAG, "FeedCallback[result.Text]:" + result.RawResult); var responseObject = Json.Deserialize(result.RawResult) as Dictionary <string, object>; object obj = 0; if (responseObject.TryGetValue("cancelled", out obj)) { cancel(); } else { success(); } } }); }
public void FeedShare(string toId = "", string link = "", string linkName = "", string linkCaption = "", string linkDescription = "", string picture = "", string actionName = "", string actionLink = "", string reference = "") { #if FBV7_API_ENABLED System.Uri linkUri = null; if (!string.IsNullOrEmpty(link)) { linkUri = new System.Uri(link); } System.Uri pictureUri = null; if (!string.IsNullOrEmpty(picture)) { pictureUri = new System.Uri(picture); } FB.FeedShare( toId: toId, link: linkUri, linkName: linkName, linkCaption: linkCaption, linkDescription: linkDescription, picture: pictureUri, mediaSource: reference, callback: PostCallback ); #endif }
public void FBPost() { isBlock = true; AudioManager.Instance.Play(1); StartCoroutine(checkInternetConnection((isConnected) => { if (isConnected) { FB.FeedShare( string.Empty, new Uri("https://www.facebook.com/convictedapp/"), Localization.Instance.GetLocale("character" + GameData.current.currentCharacterID + "_post"), Localization.Instance.GetLocale(2506), Localization.Instance.GetLocale(2501), new Uri(urlPicture[GameData.current.currentCharacterID]), string.Empty, callback: ShareCallback ); } else { ScreenManager.Instance.CreateScreen("HintPanel"); ScreenManager.Instance.current.GetComponent <Hint>().ShowHint(Localization.Instance.GetLocale(2496)); } })); }
private void Publicar() { FB.FeedShare( picture: new System.Uri("https://play.google.com/store/apps/details?id=com.SigmaBrio.Pictorem"), link: new System.Uri("https://play.google.com/store/apps/details?id=com.SigmaBrio.Pictorem"), callback: Compartido ); }
public void Share(string achievementName) { FB.FeedShare(linkCaption: "Я играю в GoGo Gosha, а ты?\n" + _currentAchievement, link: new System.Uri("http://gosha.by/Html/HomePage.html"), linkName: "Go-go Gosha!", callback: OnShare, picture: new System.Uri(LoginManager.Instance.ShareImageUrl)); }
/*void DealWithAppLink(IAppLinkResult result){ * * if (result.Url != null) {// This will work properlly when the apk is aprroved bt FB * * AppLinkUrl = result.Url.ToString (); // to make sure result.Url is a string * * } else {// In mean while use this link * * AppLinkUrl = "https://www.dropbox.com/s/73mlik7q4cu7h90/ArrowWay.apk?dl=0"; * } * * Debug.Log ("AppLink= " + AppLinkUrl); * }*/ #endregion #region FB share public void Share() { string title = "ArrowWay"; string caption = GeneralLanguageSetup.setupLanguage.captionShare; string description = GeneralLanguageSetup.setupLanguage.descriptionShare; FB.FeedShare(string.Empty, new Uri(AppLinkUrl), title, caption, description, new Uri(ImageAppLinkUrl), string.Empty, ShareCallBack); }
public static void FacebookShareFriend() { Uri g = new Uri("https://greyzoned.com/images/evilellf2 icon.png"); Uri k = new Uri("https://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" + (FB.IsLoggedIn ? FB.Mobile.UserID : "guest")); FB.FeedShare(linkCaption: "Im playing this awesome game", picture: g, linkName: "Check out this game", link: k); }
public void FeedShare(string link, string linkName, string linkDescription, Action <FacebookShareLinkMessage.ResultType> callback) { if (!FacebookManager.Instance.IsLoggedIn) { FacebookShareLinkHandler postHandler = new FacebookShareLinkHandler() { link = link, linkName = linkName, linkDescription = linkDescription, callback = callback }; GameManager.SafeAddListener <FacebookLoginMessage>(postHandler.LoginHandler); if (!FacebookManager.Instance.IsUserDataLoaded) { FacebookManager.Instance.Login(); } else { postHandler.LoginHandler(new FacebookLoginMessage(FacebookLoginMessage.ResultType.OK)); } return; } FB.FeedShare(link: new Uri(link), linkName: linkName, linkDescription: linkDescription, callback: (IShareResult result) => { FacebookShareLinkMessage.ResultType resultType = FacebookShareLinkMessage.ResultType.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 = FacebookShareLinkMessage.ResultType.CANCELLED; } else if (responseObject.TryGetValue("callback_id", out obj)) { resultType = FacebookShareLinkMessage.ResultType.OK; } } } if (callback != null) { callback(resultType); } }); }
public void OnShareClicked() { if (DayCheck()) { FB.FeedShare("", new Uri("https://play.google.com/store/apps/details?id=com.tasso.NoWhaling"), "Save the Whales", "Whales are being brutally hunted, Stop it!", "Became an Anti-Whaling activist, Save the Whales.", null, "", SharingDone); } else { FBMsg.instance.ShowUp(); } }
public void ShareStuff() { FB.FeedShare( "", new System.Uri("http://www.pct.edu"), "CIT312 is okay sometimes", "Link Caption", "This is where a description would go", new System.Uri("http://i3.kym-cdn.com/entries/icons/original/000/022/022/C2AAMCLVQAESU6Z.jpg"), "", LoginResults); }
//공유하기 ( 서버에서 받은 정보로 조합해서 사용 ) public void Share(string linkUrl, string imgUrl, System.Action complete) { // 순서 변경시 컴파일 에러 발생 // linkCaption : 링크 설명(링크 본문) // picutre : 링크 사진 // linkName : 링크 제목 // link : 연결할 링크 주소 /* * FB.FeedShare( * linkCaption: "I'm playing this awesome game", * picture: "http://greyzoned.com/images/evilelf2_icon.png", * linkName: "Check out this game", * link: "http://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" + (FB.IsLoggedIn ? FB.UserID : "guest") * ); */ if (string.IsNullOrEmpty(linkUrl)) { linkUrl = "http://apps.facebook.com/"; } FB.FeedShare( link: new System.Uri(linkUrl), linkName: "The Larch", linkCaption: "I thought up a witty tagline about larches", linkDescription: "There are a lot of larch trees around here, aren't there?", picture: new System.Uri(imgUrl), callback: (result) => { if (!string.IsNullOrEmpty(result.Error)) { Debug.Log("## Share #Error = " + result.Error); } if (complete != null) { complete(); } } ); /* * FB.FeedShare( * link: new System.Uri("https://example.com/myapp/?storyID=thelarch"), * linkName: "The Larch", * linkCaption: "I thought up a witty tagline about larches", * linkDescription: "There are a lot of larch trees around here, aren't there?", * picture: new System.Uri("https://example.com/myapp/assets/1/larch.jpg"), * callback: (result) => { * if (complete != null) complete(); * } * ); */ }
public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkURL), "Hello this is the title", "This is the caption", "Check out this game", new Uri("http://cdn3.dualshockers.com/wp-content/uploads/2016/06/6wLbbG7bRypiRHwb8v7HtA-970-80.jpg"), string.Empty, ShareCallBack); }
public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkURL), "Hello this is the title", "This is the caption", "Check out this game", new Uri("https://developers.facebook.com/"), string.Empty, ShareCallback ); }
public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkUrl), "Title", "Caption", "Check this out", new Uri("http://cuteoverload.files.wordpress.com/2016/01/a-very-friendly-quokka-imgur.jpg"), string.Empty, ShareCallback ); }
public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkURL), "Title Test", "Caption Test", "Test", new Uri("https://drive.google.com/drive/folders/16ewjyshRZTo3-qJhjTB-Io6FndVEYfM5?usp=sharing"), string.Empty, ShareCallback ); }
public void Share() { FB.FeedShare( string.Empty, new Uri("https://play.google.com/store/search?q=radian"), "Check out Radian!", "It is an awesome game", "Check out Radian on the play store, it's totally rad!", new Uri("http://i.imgur.com/OflQVUt.png?1"), string.Empty, ShareCallback ); }
public void Compartir() { FB.FeedShare( string.Empty, new Uri(AppLinkURL), "Hola este es el titulo", "Subtitutlo", "Revisa esto...", new Uri("http://iluminart.com.mx/img/portafolio-img/pic3.jpg"), string.Empty, CompartirCallback ); }
public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkUrl), "Hello this is title", "This is caption", "Check out this game", new Uri("https://i.ytimg.com/vi/NtgtMQwr3Ko/maxresdefault.jpg"), string.Empty, ShareCallBack ); }
//share something public void Share() { FB.FeedShare( string.Empty, new Uri(AppLinkURL), "Title hehe", "Caption here", "Text here", new Uri("https://upload.wikimedia.org/wikipedia/commons/1/1a/Image_upload_test.jpg"), string.Empty, ShareCallBack ); }
public void Share() { FB.FeedShare( string.Empty, new Uri("https://play.google.com/store/apps/details?id=com.neurondev.saveharambe"), "Save Harambe!", "On the morning May 28th, we lost a brother and a true friend, Harambe. He died for our sins. Can you help him win, to live his wishes?", "Check out Save Harambe on the play store!", new Uri("http://i.imgur.com/gHba5zp.png"), string.Empty, ShareCallback ); }
public void FBPost() { FB.FeedShare( string.Empty, null, "Post Title", "Post Caption", "Post Description", new Uri("http://i.imgur.com/zkYlB.jpg"), string.Empty, callback: ShareCallback ); }
public void ShareWithFriends(float myscore) { FB.FeedShare( string.Empty, //toId new System.Uri("http://apps.facebook.com/" + FB.AppId + "/?challenge_brag=" + (FB.IsLoggedIn ? AccessToken.CurrentAccessToken.UserId : "guest")), //link "FlipFlop", //linkName "Try to beat my score, Play Now !", //linkCaption "I just reach " + myscore, //linkDescription new System.Uri("http://s12.postimg.org/48ky9q0y5/funkydeformation.png"), //picture string.Empty //mediaSource ); }
public void Share() { FB.FeedShare( string.Empty, new Uri(appLinkURL), "Facebook developers Circle UNN", "showing how to integrate Facebook to your games", "Check out the colour Switch clone", new Uri("https://drive.google.com/open?id=0B8BLk3cYwCG2c3lKU2xoNmhJajQ"), string.Empty, SharingCallback ); }
public void Share() { FB.FeedShare( string.Empty, new Uri("http://www.8stags.in"), "Improve Your Brain Skills", "Crotex The 1st Dual Charcter single Player Game", "Check This Out", new Uri("http://www.8stags.in/cortex.png"), string.Empty, ShareCallback ); }