如何在 Windows Phone 8 上使用 Twitter 应用分享内容? [英] How to share something using the Twitter app on Windows Phone 8?

查看:33
本文介绍了如何在 Windows Phone 8 上使用 Twitter 应用分享内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于共享原因,我正在尝试从我自己的应用程序启动 Twitter 应用程序.我从 link 并且我也想启动 Twitter.

I am trying to launch twitter app from my own application for sharing reason. I find facebook from link and I would like to launch twitter as well.

我在下面使用它来启动它并分享我的文字,它启动了 twitter 但我的文字没有被分享.

I used below to launch it and share my text, It launches twitter but my text is not shared.

await Windows.System.Launcher.LaunchUriAsync(new Uri("twitter:tweet?text=" + getMessageToShare(selectedAya) + ""));

以上启动 Twitter 应用程序!

The above launches Twitter App!

任何想法,如何与它分享文字?

Any ideas, How to share text with it?

谢谢!

推荐答案

除非您有意避免,任务用于此类共享目的.

Unless you have avoided it purposefully, Tasks are used for such sharing purposes.

你为什么不使用任务?

看看哪一个最适合你:

  • ShareStatusTask - for sharing a status
  • ShareLinkTask - for sharing a link
  • ShareMediaTask - for sharing a media

观察

如果用户没有在他/她的手机上添加 Twitter 帐户,则不会在 Twitter 上共享状态.也不会提示用户添加 Twitter 帐户.

If the user hasn't added a Twitter account to his/her phone, the status will not be shared on Twitter. The user will not be prompted to add a Twitter account either.

这篇关于如何在 Windows Phone 8 上使用 Twitter 应用分享内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆