更新时间:2023-01-01 16:38:34
我终于解决了!我花了将近两天的时间才找到解决方案,并且没有在任何地方记录,所以我想与您分享我的结果:
I finally solved it! It took me nearly two days to find the solution and it is not documented anywhere sothat I would like to share my results with you:
// Open official Facebook app for sharing
await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post?text=foo"));
我认为这是一个非常酷的功能,提醒用户它在其他平台上的工作方式.
I think this is a very cool feature and reminds users of how it works on other plarforms.
总而言之,通过 URI 方案从您的应用启动其他应用始终是具有良好用户体验的绝佳方案.
In conclusion launching other apps from your app via URI schemes is always a great scenario with a nice user experience.
提示:通过 URI 方案打开官方 Facebook 应用程序至少需要 4.1 版本!