如何使用Facebook的“自动完成任何内容”建议样式下拉菜单 [英] How to consume Facebook's "autocomplete anything" suggest-style dropdown

查看:180
本文介绍了如何使用Facebook的“自动完成任何内容”建议样式下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在Facebook上编辑您最喜爱的音乐或电影时,您会注意到一个自动完成的建议列表,基本上是一切(品牌名称,音乐艺术家,电影等)的列表。有人可以使用该列表在自己的代码中?它是Facebook API的一部分吗?

When you go to edit your favorite music or movies on Facebook, you will notice an autocomplete suggest list that is basically a list of "everything" (brand names, music artists, movies, etc.) How can someone consume that list in their own code? Is it part of the Facebook API?

推荐答案

他们在FBML字段中包含了一些功能,但是他们的开发者wiki显示<一个href =http://wiki.developers.facebook.com/index.php/FBJS/Examples/Typeahead =nofollow noreferrer>他们如何做他们做的事情。如果您想要消费其数据,那么您将不得不使用HTTP代理并确定要发送到其服务器的参数。还有几个参数似乎是基于会话的,所以我不知道你能够将它整合到你自己的应用程序中。

They wrap some of the functionality in their FBML fields, but their developer wiki shows how they do what they do. If you want to consume their data though, you're going to have to play with an HTTP proxy and figure out what parameters to send to their server. There are also a couple parameters that seem to be session based, so I don't know how well you're going to be able to integrate this into your own application.

这篇关于如何使用Facebook的“自动完成任何内容”建议样式下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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