I am building a small facebook app. Trying to search for values in an auto compelte manner. Is it possible to use sql's like operator in fql?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- facebook error invalid key hash for some devices
There is no LIKE operator in FQL.
However, you may have luck with the IN operator:
This page may also help and has sample queries:
I know this thread is long since dead but I'm sure this may help someone in the future. FQL has its uses in some respects, but as far as searching for public information goes, I would recommend using the new graph api. I compared a simple FQL query with a similar graph query and on average, the graph was almost three times as fast (0.3s vs 0.8s). Here is a my graph example using PHP and CURL:
Hope that helps!
PS: if you are not running PHP version 5.2.0 or above you will need a JSON decoder found here.
EDIT: you can find some useful documentation here.
Another way for you is to use the strpos(message, "content you want") >= 0. I don't know why, but the IN operator does not run for me. Did anyone try it?