0

I'm developing a windows phone 8 app and I want to have a button called share, to share this app on facebook. After I press/tap that button I want the link "www.blabla.com" to appear on my facebook profile if I'm logged, and if not, to appear a dialog of logging which will not be made by me (it must be a package to do this). I'm not really sure if this is possible but it's not me who requests this. I've tried some other web pages (including this: How to share something using the Twitter app on Windows Phone 8?) but I am having a hard time getting solution at this point.

Is it possible to do something like this? Otherwise, any close alternative?

Thank you in advance!

Community
  • 1
  • 1
Liviu Sosu
  • 1,381
  • 3
  • 15
  • 26

1 Answers1

1

Yes you can use the ShareLinkTaskto share the link over Facebook.

ShareLinkTask shareLinkTask = new ShareLinkTask();
shareLinkTask.LinkUri = new Uri( "www.blabla.com", UriKind.Absolute);
shareLinkTask.Message = "Sample Facebook message!";
shareLinkTask.Show();

A best reference would be this:

Sharing from Windows Phone 8

or even you can refer the one from msdn: How to use the share link task for Windows Phone 8

Hope it helps!

Community
  • 1
  • 1
Kulasangar
  • 9,046
  • 5
  • 51
  • 82