- Home /
How to share image in persistentDataPath to facebook feed?
I'm trying to share an image taking from CaptureScreenshot()
using FB.ShareLink(...)
to Facebook.
My code is the following: (After calling FB.Init(), etc..)
string tmpScreenshotPathname = "file:///" + currentScreenshotPathname;
System.Uri contentUri = new System.UriBuilder(tmpScreenshotPathname).Uri;
System.Uri imageUri = new System.UriBuilder(tmpScreenshotPathname).Uri;
FB.ShareLink(contentUri, "Test", "Test desc", imageUri);
However, when open the FB share, the page opens for a split second before returning me back to the game. I tried using a normal Uri such as http://........jpg
and it works fine, but when I try to use a local Uri, it fails.
Is there any way to share the image to the feed without uploading it to the user's Facebook gallery using FB.API? Because there's the case where the user might decide not to share the image to the feed.. but it would have already been uploaded to his gallery from FB.API.
Your answer
Follow this Question
Related Questions
Facebook share screenshot with link. 1 Answer
Facebook share for Webplayer. 2 Answers
How can I make a Facebook Share Popup Window on iPad 0 Answers
facebook sdk share screen shot 0 Answers
How to make prime31 SocialNetworking plugin demo work? 0 Answers