【问题标题】:FQL filtering by user_id and url in url_like通过 url_like 中的 user_id 和 url 过滤 FQL
【发布时间】:2023-03-15 19:09:01
【问题描述】:

我想知道用户是否喜欢某个网址。我关注了https://developers.facebook.com/docs/reference/fql/url_like 中的 facebook 文档。使用下面的查询,我可以毫无问题地通过 user_id 获得所有喜欢:

select user_id, url from url_like where user_id=me()

此 FQL 的结果是用户喜欢的 URL 列表。当我在 WHERE 子句中添加这样的 URL 参数时会出现问题:

select user_id, url from url_like where user_id=me()and url='http://www.climatempo.com.br/previsao-do-tempo/cidade/321/riodejaneiro'

结果是一个空列表,但结果出现在第一个列表中。

有什么想法吗?

P.S 我使用 graph api explorer 测试过:https://developers.facebook.com/tools/explorer

谢谢!

【问题讨论】:

    标签: facebook-graph-api facebook-fql


    【解决方案1】:

    您要获取什么。由于 url_like 表只包含两列,如果在 where 子句中同时使用两列进行查询,则没有任何意义。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 2012-02-14
      相关资源
      最近更新 更多