How to open a Facebook app to share a link to WP8?

I am wondering how to open the official Facebook application for exchanging URIs from my C # code on Windows Phone. A regular Uri-Scheme, for example "fb://", can open an application, but not a single parameter works. I have something similar, but this will not work for me:

LaunchUriAsync(new Uri("fb://publish/profile/me?text=foo"));

Of course, I know what I can use ShareTask, but that’s not what I want. You can take a look at the Spotfy app, it does exactly what I want to do when you share a song.

Thanks for the help and answers!

PS: The same thing with Twitter, by the way ...

+3
source share
2 answers

, , ! , , , :

// Open official Facebook app for sharing
await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post?text=foo"));

, , .

, URI - .

. Facebook URI , , 4.1!

+6

, ShareLinkTask

ShareLinkTask shareLinkTask = new ShareLinkTask();
shareLinkTask.Title = "My Title";
shareLinkTask.LinkUri = new Uri("http://fb.me/profile.php", UriKind.Absolute);
shareLinkTask.Message = "Yep. I can share a link on facebook.";
shareLinkTask.Show();

, , , facebook, twitter .. ( )

, ShareMediaTask

-3

All Articles