来自UWP社区工具包的Facebook服务不再可用吗?任何解决方法? [英] Is Facebook Service from the UWP Community Toolkit no longer usable? Any workarounds?

查看:64
本文介绍了来自UWP社区工具包的Facebook服务不再可用吗?任何解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





最近我尝试在我的一款通用Windows应用程序中使用UWP社区工具包中提供的Facebook服务。



关键是允许用户在Facebook墙上分享应用内生成的内容。



我使用了以下方法来自文档...
$


//使用Facebook对话框在墙上发布消息

等待FacebookService.Instance.PostToFeedWithDialogAsync(TitleText。 Text,DescriptionText.Text,UrlText.Text);
$


//在墙上张贴留言的留言

等待FacebookService.Instance .PostToFeedAsync(TitleText.Text,MessageText.Text,DescriptionText.Text,picture.Name,stream);
$


...正如我所期望的任何描述中的内容。要在Facebook上显示的文字或MessageText.Text
您有什么想法 字段。



这些帖子出现在我的墙上,但没有标题,描述或消息,而且没有内容在
你在想什么



然后阅读此
Github发布
听起来Facebook已经弃用其图谱API中的某些字段,这解释了我和其他人获得的结果。



这意味着Facebook与通用Windows 10应用程序集成只是为了将文本写入
你在想什么 并分享它不再可能?任何解决方法?

Hi,

Recently I tried using the Facebook Service provided in the UWP Community Toolkit in one of my Universal Windows apps.

The point was to allow the user to share content, generated inside the app, on their Facebook wall.

I used the following methods from the documentation...

// Post a message on your wall using Facebook Dialog
await FacebookService.Instance.PostToFeedWithDialogAsync(TitleText.Text, DescriptionText.Text, UrlText.Text);

// Post a message with a picture on your wall
await FacebookService.Instance.PostToFeedAsync(TitleText.Text, MessageText.Text, DescriptionText.Text, picture.Name, stream);

... as I expected the content in either Description.Text or MessageText.Text to show in Facebook's What's on your mind field.

The posts appeared on my Wall but without the Title, Description or Message, and no content in What's on your mind.

Then after reading this Github post it sounds like Facebook has deprecated certain fields from its Graph API which explains the results I and others have been getting.

Does this mean that Facebook integration with a Universal Windows 10 app just to write text to What's on your mind and share it is no longer possible? Any workarounds?

推荐答案

看起来你已经链接了答案:Facebook从他们的API中删除了功能。这似乎与UWP无关。您需要向Facebook查询替代方案。
Looks like you already linked the answer: Facebook removed the functionality from their API. This doesn't appear related to UWP. You'll need to check with Facebook for alternatives.


这篇关于来自UWP社区工具包的Facebook服务不再可用吗?任何解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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