在 Haskell 中编写 Facebook 应用程序的最佳方式是什么?
我正在用 haskell 和 yesod web 框架构建一个网站作为一个副项目,我想做的是创建一个 facebook 应用程序,让用户可以搜索他们的墙以及他们的朋友和群组的墙。
我考虑过使用 JavaScript SDK,但大部分工作将在从 postSearhR 辅助函数调用的辅助函数中在幕后进行,因此这是行不通的。
在 google 上搜索短语“haskell“build facebook app””和变体并没有找到任何结果,浏览 hackage 会发现版本 0.30 的一个名为 happstack-facebok 的包,没有任何 haddock 文档。使用 haskell 和 facebook 标签搜索 SO 也不会返回任何有用的内容。
有谁知道我可以使用的例子?
I'm building a site in haskell and the yesod web framework as a side project, and what I'd like to do is create a facebook app that lets users search their wall and the wall of their friends and groups.
I've considered using the JavaScript SDK, cbut most of the work will happen behind the scenes in a helper function called from the postSearhR helper function, so that won't work.
Searching google for the phrase 'haskell "build facebook app"' and variants doesn't turn anything up, and a glance at hackage shows a package called happstack-facebok at version 0.30 with nothing in the way of haddock documentation. Searching SO with the haskell and facebook tags doesn't return anything useful either.
Does anyone know of an example I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论如何,happstack-facebook 现在已经过时了。 Facebook 显着改变了他们的 API,变得更好。 (并不是说它很棒......只是比以前更好)。
现在一个好的起点可能是authenticate 库。在 Web.Authenticate.Facebook 中:
http://hackage.haskell.org/packages/archive/authenticate/0.10.4/doc/html/Web-Authenticate-Facebook.html
有一个函数,获取图形数据。这至少应该让您能够访问一些 facebook API。
http://developers.facebook.com/docs/reference/api/
不确定还需要什么。
happstack-facebook is obsolete now anyway. Facebook changed their API significantly, for the better. (Not saying it is great... just better than before).
A good starting point now might be the authenticate library. in Web.Authenticate.Facebook:
http://hackage.haskell.org/packages/archive/authenticate/0.10.4/doc/html/Web-Authenticate-Facebook.html
there is a function, getGraphData. That should at least get you to the point of being able to access some of the facebook API.
http://developers.facebook.com/docs/reference/api/
Not sure what else is needed.