I'm trying to share to Facebook from my app with a caption and a link to it in the store e.g. "Congratulations, you got 120 points" and under that a link to the store with a custom logo. At the moment when I try to share it just has the link to the store and the option to "add a message". Is there a way to set the text to what I want it to be rather than leaving the user type a message? I have attached a screenshot to explain what I'm talking about.
Hope someone has done this before
here's my code so far:
function share() {
Windows.ApplicationModel.DataTransfer.DataTransferManager.showShareUI();
var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
dataTransferManager.addEventListener("datarequested", shareHandler);
}
function shareHandler(e) {
var request = e.request;
request.data.properties.title = "Share Example";
request.data.properties.description = "A demonstration that shows how to share.";
request.data.setUri(new Windows.Foundation.Uri("http://apps.microsoft.com/windows/app/christmas-gift-rescue/082fb89e-111a-4123-bd7f-3d11088a78cf"));
}
Thank you