从 Kiosk 发布到 Facebook
我正在为公共信息亭编写 C#/WPF/.NET4 非浏览器应用程序。我想在用户输入电子邮件和密码后,通过此触摸屏在用户的墙上发布一个简单的文本字符串。我已经查看了各种示例代码,但似乎缺少正确的部分。我宁愿不使用浏览器。如果有人能在正确的方向上轻轻推动我,我将不胜感激!谢谢你!
I am writing a C#/WPF/.NET4 non-browser application for a public kiosk. I would like to post a simple text string on a person's wall from this touch screen after they enter their email and password. I've looked around at all sorts of sample code but seem to be missing the right piece. I would much rather NOT use a browser for this. If anyone could give me a gentle nudge in the right direction, it would be greatly appreciated! Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将需要使用浏览器控件让他们登录。 Facebook 无法接受用户名和密码以返回访问令牌。您将需要在浏览器中使用 oAuth。
You will need to use a browser control to have them login. Facebook does not have a way to accept a user name and password to return an access token. You will be required to use oAuth in the browser.
您应该使用 Facebook Graph API。有很多用 PHP 编写的示例代码应该很容易翻译成 C#。据我所知,所有 C# 库都已过时。 (如果您不知道,请编辑)。
You should be using the Facebook Graph API. There is a lot of sample code written in PHP that should be easy to translate into C#. As far as I know, all of the C# libraries are out of date. (Please edit if you know otherwise).