Liviu Sosu
Liviu Sosu

Reputation: 1579

How to share a windows phone app via facebook?

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!

Upvotes: 0

Views: 239

Answers (1)

Kulasangar
Kulasangar

Reputation: 9464

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!

Upvotes: 1

Related Questions