I am on windows phone project. This project includes the latest news from various categories.
I'm done with getting news from my web service on my device. But i need to share these news on facebook, twitter etc..
How can i do that ?
I checked https://developers.facebook.com/
but couldn't find the idea or i found, here http://facebooksdk.net/docs/phone/
.
Is there any idea ? Help me about this please. I need to put a button at the end of my news and i need to share them on social platforms.
Waiting your answers with four-eye.
Thank you very much.
Use the ShareStatusTask
private void Button_Click(object sender, RoutedEventArgs e)
{
//theMessageStatus is the message you want to post to FB/Twitter
ShareNewsArticle(theMessageStatus);
}
private void ShareNewsArticle(string message)
{
ShareStatusTask sst = new ShareStatusTask();
sst.Status = message;
sst.Show();
}
This will let the user choose what social network to update (eg FB, Twitter etc..)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.