使用 FQL 进行 Facebook 查询

发布于 2024-10-12 14:54:48 字数 410 浏览 5 评论 0原文

获取时: https://api.facebook.com/method/fql.query?query=Select+page_id,page_url,名称,图片,网站,类型,位置, fan_count,电话+来自+页面+位置+姓名%20%20=%22SPA%22 我得到了所有与“SPA”完全匹配的结果 但如何获得其他也与“sp”匹配的内容。就像我们在 fql 中使用 like 运算符时一样,我遇到了问题。 请建议我解决方案

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. Like when we use like operator in fql i am getting problem.
Please suggest me with solution

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

年华零落成诗 2024-10-19 14:54:48

干得好:

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

here you go:

WHERE strpos(lower(name), 'sp') >= 0
反差帅 2024-10-19 14:54:48

因此,FQL 中没有 LIKE 运算符,您将不得不使用其他替代方法。
我希望这个链接能为您提供一些建议:

Does facebook fql contains the sql像运算符?

Hence there is no LIKE operator in FQL, you will have to use other alternative.
I hope this link will suggest you some way:

Does facebook fql contain the sql like operator?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文