有谁知道从WP7应用程序中发布鸣叫一个简单的方法?
我试着创建一个Windows Phone 7的应用程序,允许用户点击一个按钮,登录到他们的Twitter帐户,然后使用一个文本框发送基本鸣叫他们的Twitter帐户。是否有这样做的一个简单的方法?香港专业教育学院发现了一些例子,非常难以遵循。
Im trying create a windows phone 7 application that allows the user to click a button and login to their twitter account and then using a text box send a basic tweet to their twitter account. Is there a simple method of doing this? Ive found a number of examples very hard to follow.
由于提前
为您提供已在设备上配置的Twitter,使用 ShareStatusTask
Providing you have Twitter configured on the device, use the ShareStatusTask
var tsk = new Microsoft.Phone.Tasks.ShareStatusTask();
tsk.Status = "Hello world!";
tsk.Show();
这也允许用户发布至Facebook /的Windows Live /其他社交网络。如果你想将它限制到Twitter,你需要推出自己的 - 通过启动Web浏览器可能https://twitter.com/intent/tweet?source=webclient&text=your+en$c$cd+message+text$c$c>
This also allows the user to post to Facebook / Windows Live / other social networks. If you want to limit it to Twitter, you'll need to roll your own - possibly by launching a web browser to https://twitter.com/intent/tweet?source=webclient&text=your+encoded+message+text