- Home /
Sharing a photo in facebook, how to get facebook photo by ID?
I try to share a mobile game screen capture with links & messages in the player's facebook timeline, like
FB.FeedShare("", null,"", "test", "test", new Uri(url), "", ShareCallback);
This seems otherwise a simple solution, but it requires an url to picture, and the location can not be the players phone.
If I first push the picture to the player's photoalbum, like this,
var wwwForm = new WWWForm();
wwwForm.AddBinaryData("image", pic, "tst.png");
wwwForm.AddField("no_story", "true");
FB.API("me/photos", HttpMethod.POST, LogCallback, wwwForm);
I could share that picture fb url in the FeedShare. Problem is that this method returns an IGraphResult into the callback, and IGraphResult does not hold the picture name in fb, but an picture id.
Now I have read that it is possible to get the actual picture name or fb link by submitting the id to a Graph API call, but I do not seem to get the call right. How to do it?
Comment