让我所有的家人喜欢(粉丝页面)使用FQL

时间:2012-10-25 19:07:52

标签: facebook facebook-like facebook-fql

我正在尝试获取我的家人喜欢的粉丝页面列表。我正在使用:

SELECT uid, page_id, type FROM page_fan WHERE uid IN (SELECT uid FROM family WHERE profile_id = me())

但是,它没有给我页面的名称。 我该怎么办?

我明白了:

  "data": [
    {
      "uid": 100000920150807, 
      "page_id": 147629621952548, 
      "type": "SPORT"
    }, 
    {
      "uid": 1342682182, 
      "page_id": 175822015800898, 
      "type": "INTEREST"
    },...

1 个答案:

答案 0 :(得分:0)

您可以使用多个查询一次从两个表中获取数据:

{"family_page_likes":
    "SELECT uid, page_id, type FROM page_fan WHERE 
       uid IN (SELECT uid FROM family WHERE profile_id = me())",
 "page_names":
     "SELECT page_id, name, description FROM page WHERE 
        page_id IN (SELECT page_id FROM #family_page_likes)"}