简体   繁体   English

使用FQL进行FaceBook查询

[英]FaceBook query using FQL

While fetching: https://api.facebook.com/method/fql.query?query=Select+page_id,page_url,name,pic,website,type,location,fan_count,phone+from+page+where+name%20%20=%22SPA%22 i am getting all exact match results with "SPA" But how to get other which will match "sp" as well. 获取时: https//api.facebook.com/method/fql.query? query = Select + page_id,page_url,name,pic,website,type,location,fan_count,phone + from + page+where+ name%20 %20 =%22SPA%22我得到了所有与“SPA”完全匹配的结果但是如何获得其他匹配“sp”的结果。 Like when we use like operator in fql i am getting problem. 就像我们在fql中使用like运算符一样,我遇到了问题。 Please suggest me with solution 请建议我解决方案

干得好:

WHERE strpos(lower(name), 'sp') >= 0

Hence there is no LIKE operator in FQL, you will have to use other alternative. 因此,在FQL中没有LIKE运算符,您将不得不使用其他替代方法。 I hope this link will suggest you some way: 我希望这个链接能为你提供一些建议:

Does facebook fql contain the sql like operator? facebook fql是否包含sql like运算符?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM