如何在Windows Phone 8的Facebook上共享我的新闻 [英] How to Share My News on Facebook on Windows Phone 8
问题描述
我在Windows Phone项目上.该项目包括各个类别的最新新闻.
I am on windows phone project. This project includes the latest news from various categories.
我已经完成了从我的设备上的Web服务获取新闻的工作.但是我需要在Facebook,Twitter等上分享这些新闻.
I'm done with getting news from my web service on my device. But i need to share these news on facebook, twitter etc..
我该怎么做?
我检查了https://developers.facebook.com/
,但是找不到主意,或者我在这里找到了http://facebooksdk.net/docs/phone/
.
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.
用四眼等待答案.
非常感谢您.
推荐答案
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();
}
这将使用户选择要更新的社交网络(例如FB,Twitter等).
This will let the user choose what social network to update (e.g. FB, Twitter etc..)
这篇关于如何在Windows Phone 8的Facebook上共享我的新闻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!