[英]how can I share a link on facebook with my universal app 10?
I'm trying to share links on Facebook with my windows universal app 10 (c#), but i can't find any documentation on the subject. 我正在尝试与Windows通用应用程序10(c#)共享Facebook上的链接,但找不到有关此主题的任何文档。 All of them are outdated using the windows 8 share charm.
使用Windows 8共享符,所有这些都已过时。
I tried this but I don't want to share the link through the browser. 我试过了,但是我不想通过浏览器共享链接。
await Windows.System.Launcher.LaunchUriAsync(new Uri("https://www.facebook.com/sharer/sharer.php?u=http:// "link to share")
How can I proceed? 我该如何进行?
The Windows SDK for Facebook includes Facebook Authorization, Like, Graph and other Facebook functionality for Windows apps. 适用于Facebook的Windows SDK包括针对Windows应用程序的Facebook授权,Like,Graph和其他Facebook功能。 Code and samples are available on github at https://github.com/Microsoft/winsdkfb .
代码和示例可从github上的https://github.com/Microsoft/winsdkfb获得 。 Documentation is at http://microsoft.github.io/winsdkfb
文档位于http://microsoft.github.io/winsdkfb
With that library you can use the FBSession.ShowFeedDialogAsync method to let the user share a link with a title and description to their feed. 使用该库,您可以使用FBSession.ShowFeedDialogAsync方法让用户共享其提要的标题和说明链接。 See http://microsoft.github.io/winsdkfb/#feed_dialog for a code snippet demonstrating this.
请参阅http://microsoft.github.io/winsdkfb/#feed_dialog以获取演示此代码的代码段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.