Quantcast
Channel: Latest Questions by chintan_shroff
Viewing all articles
Browse latest Browse all 19

Share image from app to facebook

$
0
0
Hi I am creating a coloring book where users can color a drawing and then share it on their facebook wall. I am able to do this with a image URL but I want to do this without uploading the image on any server. Is this possible? This is what I have but it doesnt work if I put the ImageUri as something other than a web link public void FBShare () { if (FB.IsLoggedIn) { Debug.Log ("FB is logged in"); string imagePath = Application.persistentDataPath + "/colorize.png"; //System.IO.File.WriteAllBytes (imagePath, inComingImg.EncodeToPNG ()); FB.FeedShare ( string.Empty, new Uri ("https://myapplink/"), "Title", "Caption", "Description", new Uri (imagePath), string.Empty, ShareCallBack ); } else { Debug.Log ("FB is not logged in"); FBLogin (); }

Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>